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 the program development process?
What is boolean law?
What is anagram number?
What is the difference between instanceof and isinstance?
What is string intern in java?
How do you sort words in java?
What do you understand by overloading and overriding in java?
What is string buffer?
What is the difference between hashmap and hashtable in java?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What is the difference between state-based unit testing and interaction-based unit testing?
what is encapsulation in java? Explain
Can we write method inside a method in java?
What are advantages of using Java?s layout managers than windowing systems?
How to set the permissions to a file in java?