What Is Composition?
No Answer is Posted For this Question
Be the First to Post Answer
suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?
import java.io.*; class Demo { public static void main(String args[]) { File f=new File("1234.msg"); String arr[]=f.list(); System.out.println(arr.length); } }
What is console based application in java?
Explain difference between final, finally and finalize?
There are 2 classes, 1 LandAnimal and another WaterAnimal. There is another class Animal which wants to have the properties of both LandAnimal and WaterAnimal. How will you design this situation?
Difference between predicate, supplier and consumer ?
Which is better 64 bit or 32 bit?
What will happen to the exception object after exception handling?
What is entry in java?
What is an exception in java?
What is set string?
What is nullpointerexception in java?