. 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 a percentage sign called?
what is enumset?
What is the purpose of final keyword and when to use it?
List java api that supports threads?
By what default value is an object reference declared as an instance variable?
Is overriding possible in java?
How can two threads be made to communicate with each other?
What is Mutex (Mutual Exclusion Object) ?
What is the purpose of the enableevents() method in java programming?
placement papaers of spring computing technology
0 Answers Spring Computing Technologies,
What are the pillars of java?
What is a literal coding?