Explain creating threads by implementing runnable class?
No Answer is Posted For this Question
Be the First to Post Answer
what are the diffrences between interface and abstract class?
What is int argc char * argv?
when we create singleton design then we create private constructtor..so how JVM take private constructor to make object..but it's private..
What is the primitive type short?
If a class is declared without any access modifiers, where can the class be accessed?
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?
What do you mean by ordered and sorted in collections in java?
what is finalmethod & final variable with example?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
What is treeset in java collection?
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
What is a container in a gui?