Can we call the run() method instead of start()?
Answer / Ravinder Kumar Jawalia
"No, you cannot call the run() method directly in a Thread to initiate its execution. Instead, you should create and start a new Thread by invoking the start() method on an instance of the Thread class, which internally calls the run() method. The main thread calls the run() method implicitly when it starts executing the main method in a Java program."n
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you understand by looping in java? Explain the different types of loops.
How do you take thread dump in java?
Why can we not override static method?
What is a get method?
Name four container classes.
What is the preferred size of a component?
explain about jre and jvm
Can we sort set in java?
What is substring 1 in java?
Explain about method local inner classes or local inner classes in java?
What is singleton pattern?
How will you measure that int takes up only 32 bits in memory?