Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
26 views

Java Interview Questions

This document contains 25 multiple choice questions about Java concepts: 1. Questions cover topics like garbage collection, package statements, object finalization methods, component subclasses that support painting, file reading, dialog classes, clipping, native methods, for loops, order of precedence, thread blocking states, variable initialization, catch/declare rules, menu items, task priorities, AWT event hierarchies, thread states, anonymous classes, menu superclasses, finalization purposes, MenuComponent superclasses, and thread run method invocation. 2. The questions test knowledge of Java language fundamentals including memory management, object-oriented programming concepts, GUI components, multithreading, exceptions, and more. 3. Answering the questions
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Java Interview Questions

This document contains 25 multiple choice questions about Java concepts: 1. Questions cover topics like garbage collection, package statements, object finalization methods, component subclasses that support painting, file reading, dialog classes, clipping, native methods, for loops, order of precedence, thread blocking states, variable initialization, catch/declare rules, menu items, task priorities, AWT event hierarchies, thread states, anonymous classes, menu superclasses, finalization purposes, MenuComponent superclasses, and thread run method invocation. 2. The questions test knowledge of Java language fundamentals including memory management, object-oriented programming concepts, GUI components, multithreading, exceptions, and more. 3. Answering the questions
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

JAVA QUESTIONS 4

1. Does garbage collection guarantee that a program will not run out of memory?
2. What restrictions are placed on the location of a package statement within a
source code file?
3. Can an object's finalize() method be invoked while it is reachable?
4. What is the immediate superclass of the Applet class?
5. What is the difference between preemptive scheduling and time slicing?
6. Name three Component subclasses that support painting.
7. What value does readLine() return when it has reached the end of a file?
8. What is the immediate superclass of the Dialog class?
9. What is clipping?
10. What is a native method?
11. Can a for statement loop indefinitely?
12. What are order of precedence and associativity, and how are they used?
13. When a thread blocks on I/O, what state does it enter?
14. To what value is a variable of the String type automatically initialized?
15. What is the catch or declare rule for method declarations?
16. What is the difference between a MenuItem and a CheckboxMenuItem?
17. What is a task's priority and how is it used in scheduling?
18. What class is the top of the AWT event hierarchy?
19. When a thread is created and started, what is its initial state?
20. Can an anonymous class be declared as implementing an interface and
extending a class?
21. What is the immediate superclass of Menu?
22. What is the purpose of finalization?
23. Which class is the immediate superclass of the MenuComponent class?
24. What invokes a thread's run() method?
25. What is the difference between the Boolean & operator and the && operator?

You might also like