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


Please Help Members By Posting Answers For Below Questions

Explain different states of a thread in java?

592


Explain the difference between runnable and callable interface in java?

590


What is the default value of float and double datatype in java?

538


What is the preferred size of a component in java programming?

545


Why does java have two ways to create child threads?

472






What is the difference between declaration and definition in java?

519


Write a program to reverse a number in java?

564


Difference between this() and super() ?

583


What is a lambda expression ? What's its use ?

567


What does singleton mean in java?

515


Can an integer be null java?

562


Is special character in java?

616


Is class forname reflection?

520


How can you handle java exceptions?

532


Explain the JDB in depth & command line.

575