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
Is boolean a wrapper class in java?
How many bytes is a string java?
Can we inherit a class with private constructor?
Compare overloading and overriding?
What is tcp and udp?
Why char array is favored over string for the storage of passwords?
What is the purpose of declaring a variable as final?
What are reference variables in java?
What is size () in java?
Explain the selection sort algorithm and state its time complexity?
What is fail fast in java?
How does java enable high performance?
What are the legal parameters?
What is one third plus one third as a fraction?
Why 1 is not a prime number?