Exam 8: Java Thread Class, Exception Handling, and Garbage Collection
Exam 1: Java Programming Language25 Questions
Exam 2: Java Object-Oriented Programming24 Questions
Exam 3: Java Programming: Data Types, Inheritance, Interfaces, Packages, and Exception Handling25 Questions
Exam 4: Java Exception Handling and Inputoutput Operations25 Questions
Exam 5: Java Inputoutput and Event Handling24 Questions
Exam 6: AWT Components and Layout Management in Java23 Questions
Exam 7: Java Programming Concepts20 Questions
Exam 8: Java Thread Class, Exception Handling, and Garbage Collection16 Questions
Exam 9: Java Multithreading and Exception Handling25 Questions
Exam 10: Java Programming Language: Inheritance, Interfaces, Packages, and Methods18 Questions
Exam 11: Java Programming : JDBC API, Layout Managers, and Event Handling25 Questions
Exam 12: Java RMI and Swing Framework25 Questions
Exam 13: Java Programming: GUI, RMI, Polymorphism, and String Handling25 Questions
Exam 14: Java Programming:methods, Data Types, Operators, and Classes25 Questions
Exam 15: Java Programming : Event Handling, Exception Handling15 Questions
Select questions type
What is different between a Java applet and a Java application?
Free
(Multiple Choice)
5.0/5
(33)
Correct Answer:
D
Which of these keywords is not a part of exception handling?
Free
(Multiple Choice)
4.8/5
(26)
Correct Answer:
C
When method defined in subclass which has same signature as a method in a super class, it is known as method
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
B
Consider the following program:
Import myLibrary.*;
Public class ShowSomeClass
{
// code for the class...
}
What is the name of the java file containing this program?
(Multiple Choice)
4.7/5
(39)
Under what circumstances might you use the yield method of the Thread class
(Multiple Choice)
4.9/5
(42)
Consider
Public class MyClass
{
Public MyClass(){/*code*/
}
// more code...
}
To instantiate MyClass, you would write?
(Multiple Choice)
4.9/5
(31)
You read the following statement in a Java program that compiles and executes.
Submarine.dive(depth);
What can you say for sure?
(Multiple Choice)
4.9/5
(44)
Java language has support for which of the following types of comment ?
(Multiple Choice)
4.7/5
(42)
Which of the following is the correct syntax for suggesting that the JVM performs garbage collection?
(Multiple Choice)
4.9/5
(35)
A class that cannot be a subclass is called as______ class.
(Multiple Choice)
4.8/5
(37)
Consider the following code snippet
String river = new String("Columbia");
System.out.println(river.length());
What is printed?
(Multiple Choice)
4.8/5
(31)
Which of these keywords is used to manually throw an exception?
(Multiple Choice)
4.9/5
(34)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)