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
What is the type of lambda expression?
Can we increase size of array?
What about member inner classes?
Why arraylist is used in java?
What is private public protected in java?
In which language java is written?
What are the 8 data types in java?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
What is method reference in java?
What is core java called?
Explain thread life cycle in java?
How to perform merge sort in java?
What is the difference between Grid and Gridbaglayout?
What are the advantages of compiled language?
What is the difference between instanceof and isinstance?