What is the static variable?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
How do you add spaces in java?
Is java based on c?
If circular link of two objects, then will it be garbage collected ?
What is the difference between a static and a non-static inner class in java programming?
Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?
What are streams?
Enlist few advantages of inheritance?
what is the difference between equals method and ==
17 Answers IBM, Professional Access, TCS,
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?
what is difference between class and object?
43 Answers College School Exams Tests, HCL,
What is constructor in java ?