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

When should you prefer to use doget() over dopost()?

671


How does java thread pool work?

556


Difference between java beans & servlets?

597


What is the major difference between context parameter and context attribute?

602


When a servlet accepts a call from a client, it receives two objects. What are they?

778






Which java framework is most popular?

585


What mechanisms are used by a Servlet Container to maintain session information?

674


How the servlet is loaded?

606


What is servlet api used for conneting database?

706


The code in a finally clause will never fail to execute, right?

611


Why is init() method is used in servlets?

560


If servlet receives multiple requests, how many objects will it create?

838


How do you configure a centralized error handler in servlets?

542


What is new in ServletRequest interface ? (Servlet 2.4)

583


What is called Session Tracking?

606