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

Post New Answer

More Core Java Interview Questions

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()); } }

5 Answers   Rolta,


Can we use both this () and super () in a constructor?

0 Answers  


What are the differences between c++ and java?

0 Answers  


how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly?

1 Answers   Satyam,


Can an unreachable object become reachable again?

3 Answers   DELL,






How can we create an immutable class in java?

0 Answers  


What does it mean that a method or field is “static”?

0 Answers  


What is the difference between compile-time polymorphism and runtime polymorphism?

0 Answers  


What will happen if we cannot mention "finally" in Java Program ???

3 Answers   PWC,


What is native method in java?

0 Answers  


what is the difference between process and thread? : Java thread

0 Answers  


Does java have extension methods?

0 Answers  


Categories