What is java oops?
No Answer is Posted For this Question
Be the First to Post Answer
What is constructor chaining and how is it achieved in java?
What is the difference between heap memory and stack memory?
How do you declare an array that will hold more than 64KB of data?
What is the catch or declare rule for method declarations?
Why is serialization required?
How to display arraylist values in java?
How many types of JVM's (OR) Name of the JVM's which are used in Tomcat & Weblogic servers ?
Can constructor be synchronized?
How does finally block differ from finalize() method?
What is oop in java?
Write a program to print the pattern given below
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?