Answer Posted / banti
Thread has following life cycles:
1.Ready to Run
2.Runnable
3.Running
4.Blocked/Waiting
5.Dead
Once thread is dead there is no way it coming back to
running state.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is module in oop?
What is scope & storage allocation of static, local and register variables? Explain with an example.
Can a class be declared as static?
Which software is used for java programming?
Can a class be a super class and a sub-class at the same time? Give example.
Implement a stack with push (), pop() and min() in O(1) time.
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
Can we catch more than one exception in a single catch block?
Explain the importance of finally block in java?
Can we define a package statement after the import statement in java?
How to write custom exception in java?
How to do a true java ping from windows?
How do you sort words in java?
Does string is thread-safe in java?
What is mnemonic in assembly language?