Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Core Java Interview Questions and Answers

Test your skills through the online practice test: Core Java Quiz Online Practice Test

Ques 166. Can an exception be rethrown?

Yes, an exception can be rethrown.

Is it helpful? Add Comment View Comments
 

Ques 167. What class of exceptions are generated by the Java run-time system?

The Java runtime system generates RuntimeException and Error exceptions.

Is it helpful? Add Comment View Comments
 

Ques 168. What is the relationship between a method's throws clause and the exceptions that can be thrown during the method's execution?

A method's throws clause must declare any checked exceptions that are not caught within the body of the method.

Is it helpful? Add Comment View Comments
 

Ques 169. If an object is garbage collected, can it become reachable again?

Once an object is garbage collected, it ceases to exist. It can no longer become reachable again.

Is it helpful? Add Comment View Comments
 

Ques 170. Does garbage collection guarantee that a program will not run out of memory?

Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2024 WithoutBook