Can we access instance variables within static methods ?
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?
I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set?
How is abstraction implemented in java ?
What do u mean by wrapper Class? What do u mean by Jvm... How do u change JVM for other OS? Or No need to Change ...? its like tricky
Is boolean a data type in java?
What is a wrapper method?
what is the use of thread?Justify it by project point of view
What are the 4 versions of java?
Write a program in java to find the maximum and minimum value node from a circular linked list.
What is a jit compiler?
What does business logic mean?
What are the fileinputstream and fileoutputstream?