What is super keyword in java ?
What is the technique adopted to create an immutable class?
Is final static java?
What is constructor chaining in java?
How do you implement polymorphism in our day to day life?
Tell me how many ways are there to initialise an integer with a constant.
How do you use, call, and access a non-static method in Java?
Explain the overview of UDP messaging.
What is the life-cycle of an object?
What is the use of isempty in java?
How do you clear a list in java?
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 do you understand by weak reference?