What is a constructor?
Answers were Sorted based on User's Feedback
Answer / suma
A constructor is one which is used to initialize the
instance variables of an object.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / srinivasa reddy
Guarrented intilization of instance variables of an object.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / saravanan
Class name and Methods name are same. It has no Return type.
When create a instance with class the method is
automatically called.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sunil kumar
Constructor is a special method having the same name as class name, without any return type not even void. And it is used to initialize the instance variable.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?
what is the difference between through and throws?
what is difference between vector and arraylist?.
What is the use of hashcode in java ?
What is need of DAO? Write one simple DAO example?
How to use ANT?
which book is the best for preparing for SCWCD 1.5
What is the Spring2.5 MVC Navigation flow?
i need java 1+ experience resume on java developer kindly send me my mail id:srikanthreddy1.marla@gmail.com
what is diff string and stringbuffer
what is jndi?
I have include a jsp page by using <jsp:include page="/.../xyz.jsp"/> The thing is that the xyz.jsp page has its submit button.When i click on that button the whole main page get refreshed.But i want to refresh only the xyz.jsp page.How could i achive it so that i can only refresh the xyz.jsp not the main page page?