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
When throw keyword is used?
Does set allows null in java?
What methodology can be employed to locate substrings inside a string?
What is the private method modifier?
How to change the priority of thread or how to set priority of thread?
What is meant by 'Class access modifiers'?
Explain java coding standards for interfaces?
What is the default size of set in java?
What are void methods?
What is the size of a string in java?
Explain the difference between extends thread vs implements runnable in java?
What is the latest java version?
How do you represent a space in regex java?
Can set contain duplicates?
What is dynamic binding(late binding)?