Explain, why the constructor is required in implemented
class?
Answer Posted / sekhar
Constructor is like a method.It can be invoked as soon as
we create an object for the class.We can overload
constructor.to call them we need pass parameters in main
method.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is the argument in java?
What is stack explain?
How many threads can java run?
What kind of variables a class can consist of?
What is the locale class in java programming?
How many ways can we create the string object?
What's the base class of all exception classes?
Why are the destructors for base class and derived class called in reverse order when the program exits
Write a program in java to create a doubly linked list containing n nodes.
Which are different kinds of source code?
Which sorting algorithm is best in java?
What is %d in printf?
How is hashset defined in java?
What does flag mean in java?
how does multithreading take place on a computer with a single cpu? : Java thread