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 linkedlist in java?
What are the different types of garbage collectors in java?
When throws keyword is used?
What does exp mean in math?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
Why stringbuilder is not thread safe in java?
What is string builder?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
How do you end a program?
How do you test a method for an exception using junit?
What is treeset in java collection?
How do you identify independent and dependent variables?
Difference between class#getinstance() and new operator ?
In java, what is the difference between method overloading and method overriding?