Difference between method overloading and method overriding in java ?
No Answer is Posted For this Question
Be the First to Post Answer
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 a class be private or protected in java?
How many functional interfaces does java 8 have?
How to create a thread in java?
How do you make a thread in java?
Where is singleton pattern used?
int a=1; float b=1.0; System.out.println(a==b);
13 Answers CTS, Honeywell, McAfee,
How to make a class or a bean serializable?
What is jpa specification?
My application URL : http://localhost:8080/Application/Login.jsp. When a user enter this url in IE then, how it get Login.JSP Page exactly? what are the processes will happen from when we submit the URL to get Login.jsp?
what is domain object
What is the Concept of Encapsulation in OOPS