Is it possible to compare various strings with the help of == operator? What are the risks involved?
No Answer is Posted For this Question
Be the First to Post Answer
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()); } }
Can we use both this () and super () in a constructor?
What are the differences between c++ and java?
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly?
Can an unreachable object become reachable again?
How can we create an immutable class in java?
What does it mean that a method or field is “static”?
What is the difference between compile-time polymorphism and runtime polymorphism?
What will happen if we cannot mention "finally" in Java Program ???
What is native method in java?
what is the difference between process and thread? : Java thread
Does java have extension methods?