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
Can a class have multiple subclasses?
What do you mean by ternary operator in java?
Write java program to reverse string without using api?
What is nextline method in java?
Why collection doesn’t extend cloneable and serializable interfaces?
Name and explain the types of ways which are used to pass arguments in any function in java.
What are the advantages of arraylist over arrays?
How do you use parseint in java?
What is the difference between post and put?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is the static keyword?
What is the purpose of using javap?
Why string is not a wrapper class?
What is the use of default method in interface in java?
How many boolean functions are there?