Explain the scope of a variable.
No Answer is Posted For this Question
Be the First to Post Answer
Give a brief description of java socket programming?
How will you compute size of a structure?
What does exclamation mean in java?
what is the purpose of the final in the try-catch-final
What is Hierarchy of exception?
Explain about map interface in java?
Can an anonymous class be declared as implementing an interface and extending a class?
What are different exception types exceptions available in java ?
Explain the difference between an Interface and an Abstract class?
Where is the singleton class used?
How can we make a class virtual?
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?