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
Which methods cannot be overridden in java?
How does the java compiler work?
What are the types of java?
What are the wrapped, classes?
What are the different ways of implementing thread? Which one is more advantageous?
Why does java does not support multiple inheritance? Explain
What is the function of java?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is Java Reflection API? Why it’s so important to have?
What best practices should you follow while writing multithreaded code in java?
What is difference between hashset and hashmap in java?
Are maps ordered java?
What is assembly used for?
What is the final access modifier in java?
Is it possible to specify multiple jndi names when deploying an ejb?