Can we add default constructor to Servlet?
Answer Posted / 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 View All Answers
what is a working thread? : Java thread
how to deploy apache tomcat server to weblogic server in java
What does this () mean in constructor chaining concept?
How can you read content from file in java?
Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview
Which is a valid identifier?
What type of variable is error flag?
What is the purpose of default constructor?
Which oo concept is achieved by using overloading and overriding?
Difference between serialization and deserialization in java?
Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)
What are synchronized methods and synchronized statements in java programming?
Difference between Linked list and Queue?
Which language is java?
Why Java is not pure Object Oriented language?