Does java list allow null?
what is singleton in java?
Can a final variable be null?
String is mutable or immutable?
Explain the use of shift operator in java. Can you give some examples?
What are the basic interfaces of java collections framework?
JVM is platform independent or depeneded?
What is array class in java?
Can you have an inner class inside a method and what variables can you access?
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }
what is the difference between AWT and SWING what is the advantage of using swing?
What are latest features introduced with java 8?
Why scanner is used in java?