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 == and === in javascript?
Explain the use of volatile field modifier?
What is a lambda expression ? What's its use ?
What is private protected in java?
How to reverse string in java?
Explain the inheritance?
What is a type parameter in java?
What is the role of garbage collector in java?
What is printwriter in java?
Where is the singleton class used?
Is it safe to install java on my computer?
What are different types of inner classes ?
What is the use of private static?
What is object in java?
How do you add spaces in java?