Explain creating threads by implementing runnable class?


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

Post New Answer

More Core Java Interview Questions

what are the diffrences between interface and abstract class?

4 Answers  


What is int argc char * argv?

0 Answers  


when we create singleton design then we create private constructtor..so how JVM take private constructor to make object..but it's private..

1 Answers   Ness Technologies,


What is the primitive type short?

0 Answers  


If a class is declared without any access modifiers, where can the class be accessed?

0 Answers  






interface X{ void m1(); void m2(); } class Child2 extends Object implements X { public void m1(){ System.out.println("Child2 M1"); } public void m2(){ System.out.println("Child2 M2"); } } public class ParentChildInfterfaceDemo { public static void main(String[] args){ X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Will the above code work? If yes? Can you please explain why the code x.equals(x1) will work as the equals method is called on interface reference vaiable?

2 Answers  


What do you mean by ordered and sorted in collections in java?

0 Answers  


what is finalmethod & final variable with example?

6 Answers   HP,


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

0 Answers  


What is treeset in java collection?

0 Answers  


33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac

5 Answers  


What is a container in a gui?

0 Answers  


Categories