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 default locale java?
Explain about object oriented programming and its features?
What do you mean by pointer value and address?
Name few java 8 annotations ?
Can we sort set in java?
What is public/private protected in java?
What is udp in java?
What is a constructor overloading in java?
What is purpose of keyword void?
How many types of assembly languages are there?
Can a constructor be private and how are this() and super() method used with constructor?
Can a variable be local and static at the same time?
Write a program to print 15 random numbers using foreach of java 8?
how to create multithreaded program? : Java thread
What is the difference between equals() and == in java?