Exam 8: Java Thread Class, Exception Handling, and Garbage Collection

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

What is different between a Java applet and a Java application?

Free
(Multiple Choice)
5.0/5
(33)
Correct Answer:
Verified

D

Which of these keywords is not a part of exception handling?

Free
(Multiple Choice)
4.8/5
(26)
Correct Answer:
Verified

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:
Verified

B

Which of the following is TRUE?

(Multiple Choice)
4.7/5
(36)

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)

In Java Inheritance

(Multiple Choice)
4.8/5
(47)

When does Exceptions in Java arises in code sequence?

(Multiple Choice)
4.7/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)

Which of the following statement is correct?

(Multiple Choice)
4.8/5
(37)

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)
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)