Does constructor be static?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What is constructor and its types?

0 Answers  


What is the difference between comparison done by equals method and == operator?

0 Answers  


what is web.xml?and its use?

7 Answers   CTS,


How can we find the sum of two linked lists using stack in java?

0 Answers  


How to print nodes of a Binary tree?

0 Answers  






what is the use of bean managed and container managed with example?

0 Answers   EDS,


What is pre increment and post increment in java?

0 Answers  


Explain the reason behind ending a program with a system.exit(0)?

0 Answers  


What is the access scope of a protected method?

0 Answers  


Why java is call by value?

0 Answers  


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?

5 Answers  


Can we print null in java?

0 Answers  


Categories