Answer Posted / aradhana
A thread, in the context of Java, is the path followed when executing a program. All Java programs have at least one thread, known as the main thread, which is created by the JVM at the program’s start, when the main() method is invoked with the main thread. In Java, creating a thread is accomplished by implementing an interface and extending a class. Every Java thread is created and controlled by the java.lang
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is nested class?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
Is there any sort function in java?
What is floating data type?
What is array sorting in java?
Why do we create threads in java?
How can we run a java program without making any object?
What is the formula to calculate percentage?
Can we declare register variable as global?
How to do encapsulation in java?
Explain restrictions on using enum?
What state is a thread in when it is executing?
What is java english?
What is the integer of 16?
What are the two ways of implementing multi-threading in java?