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 does g mean in regex?
What are the 4 types of characters?
What is type conversion in java?
What are the classes of java?
What is integer parseint?
What an i/o filter?
How does java enable high performance?
Write a program to print fibonacci series
Why a dead thread occurs?
'A class is a template for an object' explain this statement.
What are the different types of garbage collectors in java?
What is connection class in java?
String class is defined under which package in java?
Which class is the superclass for every class in java programming?
How do you reverse sort a list in java?