Explain the importance of join() method in thread class?
Answer / Akhilesh Singh
"The 'join()' method in Java's Thread class is important for synchronizing the execution of multiple threads. When one thread calls join() on another, it waits until the other thread completes its execution before continuing. This can be useful for ensuring that certain operations are only performed after other threads have completed their work."
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the inheritance?
How many decimal places is a double?
What are the benefits of java?
What is identifier in java?
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects
all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.
What is number data type?
What is the difference between abstract class and interface?
In what circumstances, compiler will supply a default constructor for a class?
What are the methods of object class ?
Can we increase array size dynamically in java?
What is JIT ?