. 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 purpose of method overriding in java where v r completely re-defining a inherited method instead y can't v create a new method and define.If the question is very silly plz excuse me and do reply.Thank U!
7 Answers emc2, Kumaran Systems,
Why should I use abstract class?
what is the difference between a threads start() and run() methods? : Java thread
What is difference between length and length() method in java ?
What are streams?
What is sortedmap interface?
How do you override a variable in java?
Is minecraft 1.15 out?
What are facelets templates?
When throws keyword is used?
aabccdee Find the used alphabets as abcde ?
In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?