Comparing Variables : (==)

Comparing Variables : (==)

We always compare the primitive values using this method.Primitive variables are stored in memory as some absolute number of bits, depending on the type of primitive being handled. 

We can also say like this that we can\'t know from one Java implementation to the next how big a reference variable is it might be 64 bits, it might be 97 bits.but the key thing to remember is that wherever a Java program might run, all of the reference variables running on a single VM will be the same size (in bits) and format.

By:umang
Date:2013-03-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related scjp1.5 chap7 Links

scjp1.5 chap7 interview questions and answers for experienced and fresher