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

What is difference between public static and void?

475


Define array. Tell me about 2-D array.

580


What are the main concepts of oops in java?

585


Does java vector allow null?

529


What is the difference between assignment and initialization?

546






Explain list interface?

509


What is scope & storage allocation of static, local and register variables? Explain with an example.

558


What is definition and declaration?

515


Can an object subclass another object?

547


What state is a thread in when it is executing?

519


how to split string in java?

645


How many types of methods are there in java?

519


Explain about the dynamic behavior of core java?

628


What is a loop java?

580


Is boolean a wrapper class in java?

594