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 / satish
true
true
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Can you call a method on a null object?
What is the purpose of return statement?
How do you compare values in java?
What are static blocks in java ?
What are 5 boolean operators?
What are the characteristics of java?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
What is the difference between yield() and sleep()?
Is upper case in java?
What is the importance of finally block in exception handling?
How do you sort arrays in java?
What is variable length arguments in java?
What is a local block?
What is package protected in java?
In a container there are 5 components. I want to display all the component names, how will you do that?