public class Test
{
public static void main(String ar[])
{
Integer a = 10;
Integer b =10;
Integer c = 145;
Integer d = 145;
System.out.println(a==b);
System.out.println(c==d);
}
}
Answer Posted / prashanth
true
false
The Buffer size of Integer class is -128 to 127
Except this range in all remaining cases a new object will be created.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is return used for in java?
What are data types in programming?
Why is singleton class used?
Explain inner classes ?
What are the advantages of compiled language?
How do you create a null object?
What is the difference between dom and sax parser in java?
Can interface be private in java?
Explain about interthread communication and how it takes place in java?
Can we write multiple catch blocks under single try block?
What is super in java?
Can we override private constructor in java?
what is a thread pool in java and why is it used?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
What is the difference between access specifiers and access modifiers in java? 16