Hard Questions on Core Java
Public: accessible to all classes.
Private: accessible only to the class to which they belong.
Protected: accessible to the class to which they belong and any subclasses.
Access specifiers are keywords that determines the type of access to the member of a class. These are:
* Public
* Protected
* Private
* Default
- 1. What is the main difference between a JDK and a JVM ?
- 2. What is a pointer and how does Java support Pointers ?
- 3. What is the main difference between private, protected, and public ?
Public: accessible to all classes.
Private: accessible only to the class to which they belong.
Protected: accessible to the class to which they belong and any subclasses.
Access specifiers are keywords that determines the type of access to the member of a class. These are:
* Public
* Protected
* Private
* Default
- 4. What\'s the difference between a Vector and an Array List ?
- 5. Is Iterator a Class or Interface? What is its use ?
- 6. What are Java transient variables ?
- 7. Define Synchronization ?
- 8. How can you force garbage collection in java ?
- 9. Does garbage collection guarantee that a program will not run out of memory ?
- 10. What must a class do to implement an interface ?
- 11. Why java is said as pass-by-value ?
- 12. What is a object cloning ?
- 13. Define object pooling ?
- 14. What are the disadvantage of garbage collection ?
- 15. Why Java is not fully objective oriented ?
- 16. What is marker interface ?
- 17. What are tag interfaces ?
- 18. What are the restrictions placed on static method ?
- 19. Can we declare a static variable inside a method ?
- 20. Can any Interface implement another Interface ?
- 21. Can any Interface extend another Interface ?
- 22. Can Class extend more than one Class ?
- 23. What is the main difference between Iterator and Enumeration ?
- 24. What is internationalization ?
- 25. What is the difference between URL and URL Connection ?
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.