Which two are valid constructors for thread?
Answers
Answered by
0
two are valid constructors for thread are
Thread(Runnable r, String name)
Thread()
Thread(Runnable r, String name)
Thread()
Answered by
0
Answer:
Constructors are special class functions which performs initialization of every object. The Compiler calls the Constructor whenever an object is created. Constructors initialize values to object members after storage is allocated to the object. Whereas, Destructor on the other hand is used to destroy the class object.
Similar questions
Science,
8 months ago
Accountancy,
8 months ago
Social Sciences,
1 year ago
Math,
1 year ago
English,
1 year ago