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 |
How to maintain security in servlets?
What is the role of the webserver?
If a servlet is not properly initialized, what exception may be thrown?
Where do you define dispatcherservlet?
What are Servlets?
How to pass JavaBeans data to JSP using Servlets?
When servlet object is created?
How to make servlet thread safe?
9 Answers Frisco Tech, InfoVista, WipSys Technologies,
What do you mean by request dispatcher in servlet?
Why do we need a constructor in a servlet if we use the init method?
Can we refresh servlet in client and server side automatically?
What is the difference between get and post methods?