Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Core Java Interview Questions and Answers

Ques 211. How are Observer and Observable used?

Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.

Is it helpful? Add Comment View Comments
 

Ques 212. How does Java handle integer overflows and underflows?

It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.

Is it helpful? Add Comment View Comments
 

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

The default value of an String type is null.

Is it helpful? Add Comment View Comments
 

Ques 214. What is the range of the short type?

The range of the short type is -(2^15) to 2^15 - 1.

Is it helpful? Add Comment View Comments
 

Ques 215. What is Downcasting ?

Downcasting is the casting from a general to a more specific type, i.e. casting down the hierarchy

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2021 WithoutBook