Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Core Java Interview Questions and Answers

Ques 221. Can a Byte object be cast to a double value?

No, an object cannot be cast to a primitive value.

Is it helpful? Add Comment View Comments
 

Ques 222. How is rounding performed under integer division?

The fractional part of the result is truncated. This is known as rounding toward zero.

Is it helpful? Add Comment View Comments
 

Ques 223. What would you use to compare two String variables - the operator == or the method equals()?

I would use the method equals() to compare the values of the Strings and the == to check if two variables point at the same instance of a String object.

Is it helpful? Add Comment View Comments
 

Ques 224. Which non-Unicode letter characters may be used as the first character of an identifier?

The non-Unicode letter characters $ and _ may appear as the first character of an identifier

Is it helpful? Add Comment View Comments
 

Ques 225. What is a hashCode?

hash code value for this object which is unique for every object.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2021 WithoutBook