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 treeset and treemap in java?
What is a condition in programming?
Is set thread safe java?
Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview
What are the different types of multitasking?
What is a bubble sort in java?
What does singleton class mean?
Explain about anonymous inner classes ?
Why bytecode is called bytecode?
What is difference between public static and void?
Can we create a class inside a class in java?
How would you convert bytes to string?
What do you mean by an object in java?
Which is better arraylist or vector?
What is the purpose of the System class?