. What are the differences between constructor and method of a class in Java?
Answer / nashiinformaticssolutions
Initializing the state of the object is done by constructors. A function Object () { [native code] }, like methods, contains a group of statements (or instructions) that are carried out when an object is created. A method is a group of statements that work together to complete a certain task and return the outcome to the caller. A method has the option of working without returning anything.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the is a and has a relation ship in oops concept in java?
What is the protocol is used in type4 driver?
What is class forname used for?
How many types of keywords are there?
What an i/o filter?
How many types of JVM's (OR) Name of the JVM's which are used in Tomcat & Weblogic servers ?
What is finalize()? Is finalize() similar to a destructor?
I have one Shopping cart application, i that i have selected some items, while clicking submit button by mistake i have clicked twice or trice, that time items are selected twice or trice. Actually i want only one copy of items but its selected twice or trice. So how can we avoid this problem?
types of applets?.
What is an iterator interface in java programming?
What is the alternate of 'Inheritance' ?
What are the OOAD concepts in java explain with examples?