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 / seven hills
true
false
because the value of Integer object should not be greater than 127...if u put<127 then always true
Is This Answer Correct ? | 23 Yes | 1 No |
Post New Answer View All Answers
What is blank final variable?
Can we call thread start () twice?
what is heap memory?
What is hash code collision?
Can we override private constructor in java?
How to obtain a performance profile of java program
How to create an immutable class?
What is hashtable and explain features of hashtable?
Is java util regex pattern thread safe?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
Define interface in java?
Why do we use threads in java?
What is a prefix function.write down a code to compute prefix function.
Can we convert integer to string in java?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?