What are the default and parameterized constructors?
Answer / Vidit Goyal
A default constructor is a no-argument constructor that is automatically generated by the compiler if no user-defined constructors are provided. A parameterized constructor, also known as an overloaded constructor, has one or more arguments in its constructor declaration and is used to initialize objects with specific initial values.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why method overloading and method overriding required in java?
When garbage collector invokes object?s finalize() method?
What is dynamic binding(late binding)?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What is difference between word and integer?
what is the context
How does multithreading take place on a computer with a single cpu?
What is the biggest integer?
How to compare strings in java?
Explain the protected field modifier?
Why is multithreading important?
What does || mean in vectors?