What is set and get methods in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is unsigned char?
placement papaers of spring computing technology
0 Answers Spring Computing Technologies,
how to compile jsp?
How can we create objects if we make the constructor private ?
Why is singleton not thread safe?
List out five keywords related to exception handling ?
how can be object class inherited to all class in a program when java does not support multiple inheritance??
What is meant by structural programming?
What is lifetime variable?
How do I find and replace in word?
Can we write multiple catch blocks under single try block?
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(); } }