What is the importance of hashcode() and equals() methods?
No Answer is Posted For this Question
Be the First to Post Answer
Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time?
what is meant by HQL?
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?
how you will prevent method overriding?
Under what circumstances an object reference be cast to an interface reference?
How many types of literals are there in JAVA?
What is an anonymous class in java?
How many types of assembly languages are there?
Integer.parse Int(bf.readLine(System.out.println("enter value for n["+m+"]:"))); can it run under this
Can a class have multiple superclasses?
What is unmodifiable list in java?
wat is final...? wat is finally...? wat is finalize....? difference between " final and finally and finalize "...?