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
How many digits can a float hold?
what is the significance of listiterator in java?
What is JVM and is it platform independent?
Compare overloading and overriding?
How do you identify if jvm is 32-bit or 64-bit from java program?
What is the static method?
What is factor r?
What do you mean by an object in java?
What is abstract class? Explain
What environment variables do I need to set on my machine in order to be able to run java programs?
How to use string tokenizer class.
What is __ init __ functions?
Can we clone singleton object?
How do you include a string in java?
Can we override private method?