Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Core Java Interview Questions and Answers

Ques 161. To what value is a variable of the String type automatically initialized?

Ans. The default value of an String type is null.

Is it helpful? Add Comment View Comments
Ques 162. What is a task's priority and how is it used in scheduling?
Ans. A task's priority is an integer value that identifies the relative order in which it should be executed with respect to other tasks. The scheduler attempts to schedule higher priority tasks before lower priority tasks.
Is it helpful? Add Comment View Comments
Ques 163. What is the range of the short type?
Ans. The range of the short type is -(2^15) to 2^15 - 1.
Is it helpful? Add Comment View Comments
Ques 164. What is the purpose of garbage collection?
Ans. The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources may be reclaimed and reused.
Is it helpful? Add Comment View Comments
Ques 165. What do you understand by private, protected and public?
Ans. These are accessibility modifiers. Private is the most restrictive, while public is the least restrictive. There is no real difference between protected and the default type (also known as package protected) within the context of the same package, however the protected keyword allows visibility to a derived class in a different package.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2018 WithoutBook