When the constructor of a class is invoked?
How many bytes is a string java?
What is type parameter in java?
how to split string in java?
what is the use of bean managed and container managed with example?
Why array is used in java?
why operator overloading is removed in java?
Which is better singleton or static class?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
Is a class an object?
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?
List some features of the abstract class.
Write code to implement bubble sort in java?