What is a classloader in java?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
Matrix multiplication only using OOP concepts .
Is math an abstract class in java?
Can an interface implement another interface?
How can you generate random numbers in java?
Can arraylist hold different types java?
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?
while creating thread why we extend thread class
what is polymorphism?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
What do you mean by hashing?
What is meant by interface?