How do you define a singleton class?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

why there are multiple catches for a try block.don't tell me that there can be multiple exception of a code segment that's why.tell me the real fact behind this.

4 Answers  


What is Java Annotations?

0 Answers  


Hi friends i want display Triangle shap stars(*) please can tell me any one java code logic? * *** ***** ******* Like this

2 Answers   NIIT, TCS,


What are synchronized methods ?

0 Answers  


What is floor math?

0 Answers  






briefley expalin about the packages

3 Answers  


What are Font and FontMetrics classes?

1 Answers  


What is return null in java?

0 Answers  


How big is a boolean?

0 Answers  


What is java util hashmap?

0 Answers  


Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }

3 Answers  


What is an empty string in css?

0 Answers  


Categories