What is lifetime variable?
What is regex in java?
What is the disadvantage of synchronization?
What causes memory leak in java?
How do you decide when to use arraylist and linkedlist?
What is a predicate method?
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?
Why main() method is public, static and void in java ?
What are the restrictions that are applied to the java static methods?
Can we catch more than one exception in a single catch block?
Can we use static class instead of singleton?
What is the base class of all exception classes?
Is java a security risk?