Answer Posted / shiva
java allows objects to initilize themselves when they are
created .this automatic initilization is done wih the use
of constructor .a constructor is a special type of method
that has the same name of its class.when ever an object of
class is created,its constructor will be invoked and it
will initilized the object.the return type for a
constructor is not defined as it implicitly takes its class
type as return type.
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
Explain about the interpreter in java?
How many types of variables are there?
What is flag in python?
How do constructors use this() and super()?
What is static variable with example?
How do you override a private method in java?
What is an abstract method in java programming?
Why synchronization is important in java?
What are the different data types in java?
Why are the objects immutable in java?
When can an object reference be cast to an interface reference in java programming?
What are keywords in programming?
Differences between traditional programming language and object oriented programming language?
What is a instance variable?
What is immutable class in java?