waht You know about thread programming?
Answer / satishkumar vishwakarma
The thread is a small peace of code design to take maximum
utilization of cpu. when a program written using thread is
called thread programming.
| Is This Answer Correct ? | 1 Yes | 0 No |
What are the advantages of the model over the event- inheritance model?
What is append function?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
What is the difference between throw and throws in java?
What is an class?
Why all programming languages have main as a execution starting point?
What data structures are used to perform recursion?
0 Answers Akamai Technologies,
Explain the transient field modifier?
Why char array is favored over string for the storage of passwords?
Does variable declaration allocate memory?
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?
Can we modify the throws clause of the superclass method while overriding it in the subclass?