What is nested class?
No Answer is Posted For this Question
Be the First to Post Answer
Which is faster set or list in java?
what is difference between length and length()?
whats is inheritance?
15 Answers CTS, HCL,
Outline the major features of java.
what is polymorphism?
import java.io.*; class Demo { public static void main(String args[]) { File f=new File("1234.msg"); String arr[]=f.list(); System.out.println(arr.length); } }
How does hashmap work in java ?
What is final keyword?
In how many ways we can create threads in java?
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()); } }
Why do we need hashmap in java?
what is use of functional interface in java 8?