What happens if a constructor is declared private?
No Answer is Posted For this Question
Be the First to Post Answer
Is Java is 100% pure OOPS? Explain?
how to print hello world every second till i have pressed enter key ???
How to call one constructor from the other constructor ?
What is singleton pattern?
What is immutable class? how to make a Class explicitly "Immutable"?Wap to make a class explicitly immutable.
What is integer valueof?
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects
What are controls and their different types in awt?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
"We cannot create an object of interface but we can create a variable of it". Discuss the statement with the help of an example. (Plz help us to provide immediately.)
What is the difference between class forname and new?
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(); } }