. 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 an example of declaration?
What is variable and its types?
What is the difference between this() and super()?
What do you understand by looping in java? Explain the different types of loops.
How many types of voids are there?
what is the use of servlet engine?
What does || mean in code?
Explain the protected field modifier?
Is it possible for a yielded thread to get chance for its execution again?
I need help please send me reply: Write a program "if given a string like 'HAT', the combination's returned should be like ATH,THA,TAH in java"?
what is the purpose of "virtual"?
Define nashorn in java8.