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
How many characters is 2 bytes?
What is finally and finalize in java?
Difference between abstract and concrete class ?
Is there a way to increase the size of an array after its declaration?
How do you sort an array in java?
How does arraylist size increase in java?
Can a static member function access member variable of an object?
What is null in java?
what is the messsage u r going to get from an objectoriented programing?
How many tetrahedral voids are there in bcc?
How can you set the applet size?
What is abstraction in java?
What are different exception types exceptions available in java ?
What is the use of generics? When was it added to the Java development Kit?
Which software is used for java programming?