Theory Questions  -  Core Java


1.What comes to mind when you hear about a young generation in Java?

Garbage collection.

2.What comes to mind when someone mentions a shallow copy in Java?

Object cloning.

3.If you're overriding the method equals() of an object,which other method you might also consider?


4.You are planning to do an indexed search in a list of objects. Which of the two Java collections should you use: ArrayList or LinkedList?


5.How would you make a copy of an entire Java object with its state?

Have this class implement Cloneable interface and call its method clone().

123456Next >>

Freshbuddies.com. All Rights Reserved | Copyright | Terms of Use & Privacy Policy

Contact us: info@freshbuddies.com