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 / sonalgusain99@gmail.com
1.true,true
2.false,true
3.true,false
plz also gv explanation
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
what is session in java?
Can you change array size in java?
What is the difference between jfc & wfc?
What is the difference between break and continue statements?
Does java set allow duplicates?
How do you input a string in java?
What is the default value of local and global variables?
what methods would you overwrite in java.lang.object class?
What are the five major types of reference sources?
What is == mean?
Tell me how many ways are there to initialise an integer with a constant.
Can we sort hashmap in java?
How do you execute a thread in java?
Can we clone singleton object in java?
Explain some best practices you would apply while using collection in java?