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
Which collection is ordered in java?
make a method which any number and any type of argument and print sum of that arguments.....
What are the differences between forwarding () method and sendredirect() methods?
Write a program to find maximum and minimum number in array?
What is the maximum size of hashmap in java?
What is the difference between break and continue statements?
What is a boolean expression in java?
What is final variable?
What is codebase?
Explain differences between checked and unchecked exceptions in java?
What is deserialization?
what is object slice?
What are instance variables?
Explain working of call by reference function invoking.
What does n mean in java?