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
What is meant by JVM? Is JVM platform independent or not?
What is a buffer in computer?
What do you mean by local variable and instance variable?
What is a Hash Table? What are the advantages of using a hash table?
Can we force garbage collector to run ?
What are the important features of Java 11 release?
What is the best definition for data?
What is n in java?
Enlist diffrent types of inheritance supported by java?
Where is const variable stored?
What is args length in java?
Can a class have a static inner class?
Explain the difference between call by refrence and call by value?
What is the difference between preemptive scheduling and time slicing?
How do you check whether the list is empty or not in java?