Can we write class inside a class in java?
No Answer is Posted For this Question
Be the First to Post Answer
What are controls and their different types in awt?
Why do we need hashmap in java?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
What is linkedlist in java?
Can a class have a static inner class?
What is the difference between Synchronizing mehtod & Synchronizing block?
What is difference overloading and overriding?
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(); } }
Java run-time system generates What class of exceptions?
What is the difference between integer parseint and integer valueof?
how system.out.println() works?
Difference between comparator and comparable in java?