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 we call the run() method instead of start()?
What are the high-level thread states in java programming?
when should you use stringbuilder class in a program?
What does pointer mean?
What is a static method in java?
Is null false in java?
How many types of string data types are there?
Can we have any code between try and finally blocks?
Explain the differences between abstraction and encapsulation?
How do you achieve singleton?
What is bigger kb or mb?
When should I use singleton?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
Explain the scope of a variable.
What is palindrome in java?