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 / ravi
using "Singletone Design pattern" we can prevent class creating multiple objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you remove all elements from an arraylist in java?
What is the use of list in java?
What is lazy initialization in java?
Explain about arraylist?
What Is Query Throttling in java?
Where is stringbuffer stored?
Difference between this() and super() ?
List some java keywords sun like c, c + + keywords?
What is getclass () getname () in java?
Explain the Propertie sof class?
What is the difference between keyword and identifier?
What is the purpose of void?
What are the major advantages of internal iteration over external iteration?
Is java a pure object oriented language?
What is 16 bits called?