Can we add default constructor to Servlet?



Can we add default constructor to Servlet?..

Answer / balbir

yes,we can. by the way java implicitly create a constructor
if we not passing any constructor.

Is This Answer Correct ?    10 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is object-oriented paradigm?

0 Answers  


What is the difference between && and & in java?

0 Answers  


What is Gang of four design patterns

0 Answers   Infosys,


Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces.

17 Answers   Hewitt,


What is the functionality of the stub?

0 Answers  






Which is better 64 bit or 32 bit?

0 Answers  


What are the legal operands of the instanceof operator?

0 Answers  


Can vector have duplicates in java?

0 Answers  


any other way to print the text without using System.out.println() in java?

5 Answers   IBM, Infosys,


Does a class inherit the constructors of its superclass in java programming?

0 Answers  


Why stringbuilder is not thread safe?

0 Answers  


What is the difference between a break statement and a continue statement?

0 Answers  


Categories