What compiler do not do if we create our own constructor?
Answers were Sorted based on User's Feedback
Answer / purnima
the compiler does not create a default constructor if we
create our own constructor
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / qim2010
The compiler check the java code. If it founds no constructor for the class then JVM automatically creates the default constructor.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
what is OOAS
What is the difference between genericservlet and httpservlet
What is http servlet? Explain with the help of an example.
Explain how to improve Servlet Performance?
what is the difference between ServletContext and ServletConfig
Hi guys.. Well can u tell me that why there is need of "init()" , i mean why can not we initialize the servlet object with the help of constructors? Thank you.
What is the default http method in the servlet?
What is life cycle of Servlet?
What is called servlet mapping?
What is lazy loading and what is Generic Servlet Class?
What is the process for chaining servlet?
Why doesn’t a servlet include main()?