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 / ashish
A list of few more java interview questions like
1. By default, Java is pass by reference or pass by value. how it handles it.
2. In which scenario, you will use custom exceptions in java.
3. how garbage collection works in java
4. what is autoboxing and unboxing in java
5. how hashmap works in java
For more questions:
<a href="http://newtechnobuzzz.blogspot.com/2014/07/tricky-java-interview-questions-and.html">Check more information on java interview questions and tutorials</a>
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why Java is not pure Object Oriented language?
What is difference between hashset and hashmap in java?
What happens if we don’t override run method ?
What is this keyword in java?
What is an example of procedure?
What is a string token?
What is array command?
How do you define a method?
How do you clear an arraylist in java?
What is a Transient Object?
How objects are stored in java?
What are wrapper classes in java?
Can you tell me range of byte?
What are the supported platforms by java programming language?
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?