Explain the concept of proper inheritance?
No Answer is Posted For this Question
Be the First to Post Answer
Is a char always 1 byte?
Explain try and catch keywords in java?
Give few difference between constructor and method?
can we write two same methods in outer class and innerclass.
Explain the features of java?
What is the use of join method?
Does list maintain insertion order java?
Explain about the select method with an example?
what is the difference between String s="hello"; and String s=new String("hello");?
Can we use static class instead of singleton?
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 are the different access modifiers available in java?