. 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 do you understand by soft reference?
What are the main concepts of oops in java?
What is the difference between JVM and JRE?
Explain about static nested classes in java?
What is the different between get and post?
What is an exception in java?
What is thread life cycle?
What are synchronized methods and synchronized statements in java programming?
Is there any tag in htm to upload and download files?
How can you eliminate duplicates?
garbate collector(GC)?
What is the purpose of the file class in java programming?