Is void a keyword in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is visibility mode?
What is diamond operator in java?
What is the return type of the main method?
What is the purpose of main function in java?
What is the difference between hashset and treeset in java?
Can an exception be rethrown?
Are arrays dynamic in java?
what is j2se
Which oo concept is achieved by using overloading and overriding?
Is string thread safe in java?
What is java algorithm?
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(); } }