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
What is the Difference between Final Class && Abstract Class?
Why does java have two ways to create child threads? Which way is better?
Are arrays static in java?
What is currentthread()?
Can you instantiate the math class in Java?
How many decimal places is a double?
Name few java util classes introduced with java 8 ?
How do you declare an empty string?
Say any two properties in beans?
What is the use of coding?
What is better- service oriented or batch oriented solutions?
Why is the singleton pattern considered to be an anti pattern?
What is final?
How does callback work in java?
Where is jre installed?