Does constructor be static?
No Answer is Posted For this Question
Be the First to Post Answer
What is constructor and its types?
What is the difference between comparison done by equals method and == operator?
what is web.xml?and its use?
How can we find the sum of two linked lists using stack in java?
How to print nodes of a Binary tree?
what is the use of bean managed and container managed with example?
What is pre increment and post increment in java?
Explain the reason behind ending a program with a system.exit(0)?
What is the access scope of a protected method?
Why java is call by value?
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?
Can we print null in java?