What compiler do not do if we create our own constructor?

Answer Posted / gaurav

Every class have an at least one constructor so if user not
created any constructor then compiler automatically create
default constructor and call its super class. If we create
our own constructor then compiler does not create
constructor for our class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is a constructor needed in a servlet even if we use the init method?

609


Which interface should be implemented by all servlets?

702


Difference between java beans & servlets?

588


What do you mean by web applications?

627


What is the difference between sendredirect() and forward() in a servlet?

529






What is the structure of the http response

677


Is servlet synchronized?

605


Which HTTP method is non-idempotent?

618


What is the disadvantage of cookies?

580


Whether thread can be used in servlets?

729


Can you refresh servlet in client and server-side automatically?

623


What are the functions of Servlet container?

609


What is servlet and its types?

557


Explain the role of dispatcherservlet and contextloaderlistener.

610


Which httpsession object is used to view and manipulate information about a session?

736