How do you differentiate abstract class from interface?
No Answer is Posted For this Question
Be the First to Post Answer
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?
What is the difference between length and size in java?
How does access modifiers work?
Why are global variables used?
What are Font and FontMetrics classes?
why abstract class will have a constructor?
waht happens when a return type ,even void is specified for a constructor?
Does java support multiple inheritances?
what is difference between prepare stetement and callable starement with example?
What are static blocks in java ?
What is the difference between the continue and break statement?
Write a program to calculate factorial in java?