. 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 |
An inner class can actually be a subclass of the outer class? a. true b. false
What is the benefit of using enum to declare a constant?
How can an object be unreferenced?
What is 'finally' method in Exceptions?
do I need to use synchronized on setvalue(int)? : Java thread
How does sublist works in java?
How do you use find and replace?
Does a class inherit the constructor of its super class?if it does, how can you hide that constructor? if it doesnot how can you call it from the sub class?
What is java virtual machine? Explain
What are Normalization Rules? Define Normalization?
What is boolean query?
wat is class level lock and object level lock