how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

public class Base { public void myMethod(int a,intb) {} } // Uses myMethod and then hides it. public class DerivedOne extends Base { private void myMethod(int a,int b); } will this compile or not .yes or no. why

2 Answers  


What is a byte array?

0 Answers  


What is identifier give example?

0 Answers  


What is the difference between the final method and abstract method?

0 Answers  


Is ++ operator thread-safe in java?

0 Answers  


I was asked to draw the class diagram for the below scenario which should obey OOPS concept. A Portal is to be developed for a school , which has 3 main divisions viz , Education , Admin & Trust. Each division has 2 sub divisions Kinder Garden & Higer Secondary.

3 Answers   Amtek, Huawei,


Features of JAVA ? In which version of java synchronizedXXX() methods are included in Collections class.

1 Answers   NIIT,


What is the purpose of default constructor?

0 Answers  


What is the method to expand and collapse nodes in a jtree?

0 Answers  


when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?

6 Answers  


Are constructors methods?

0 Answers  


i don't want fullforms of JDK an JVM i want definitions for them

2 Answers  


Categories