For what purpose we use getName () * A to get the name of thread B to get the name of a method C to get the name of the object D All of the above?

Explanation: The getName() function is used to obtain the name of the thread , in this code the name given to thread is ‘New Thread’.

Sizin İçin Seçtik  What is the use of getClass method?

Leave a Reply

Your email address will not be published. Required fields are marked *

For what purpose we use getName () * A to get the name of thread B to get the name of a method C to get the name of the object D All of the above?

Explanation: The getName() function is used to obtain the name of the thread , in this code the name given to thread is ‘New Thread’.

Sizin İçin Seçtik  What is daemon thread in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *