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
Why java applets are more useful for intranets as compared to internet?
Can we write multiple catch blocks under single try block?
What is java life cycle?
How to overcome the exception object reference not set to an instance of object?
What is the difference between class & structure?
What is formatted output?
What is the relationship between class and object?
What are passing parameters?
What is string pool?
Can we create object of static class?
Can inner class final?
Explain the importance of throwable class and its methods?
What is parsing a sentence?
Why is the main method static?
How many types of keywords are there?