What is the method in java?
No Answer is Posted For this Question
Be the First to Post Answer
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(); } }
What is difference between jdk,jre and jvm?
What is a variable declaration?
there are some duplicate values in ArrayList, how U'll get that array with out duplicate?
Is linkedlist thread safe in java?
What is boolean in java?
what is difference between set and list in collection?
What is an Exception ?
What is the purpose of static methods and variables?
What are advantages and disadvantages of OOPs?
What are hot spots in Java programming?
What are the types of arrays in java?