What's the difference between comparison done by equals method and == operator?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What are the supported platforms by java programming language?

0 Answers  


What is charat java?

0 Answers  


Say any two properties in beans?

0 Answers  


Can we extend private class in java?

0 Answers  


wht is customised exception?

1 Answers   Logica CMG, Novell, Prudential,






What does n mean in java?

0 Answers  


What does exp mean in math?

0 Answers  


What is the difference between an object-oriented programming language and object-based programming language?

0 Answers  


If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?

5 Answers  


Program to find greatest prime number in n numbers?

3 Answers   Huawei,


what are the difference between Java and .Net?

5 Answers  


What is Exception handling in Java How do you handle run time errors please explain with an example

2 Answers   Mastek, TCS,


Categories