. 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 object data type?
jdbc drivers?
Can we cast any other type to boolean type with type casting?
What is loop in java?
How to print nodes of a Binary tree?
what is for datainputstream?
What is the difference between panel and frame ?
7 Answers HCL, IBM, Raim Techno Solutions,
Explain the access modifiers for a class, method and variables?
what is the difference between the methods sleep() and wait()? : Java thread
What is the vector class in java programming?
How do I get 64 bit java?
Why is method overloading not possible by changing the return type in java?