why the constructor should be used in class,if there is no
constructor what will happen?
Answer Posted / yamini
Constructor is used initialize certian paramameters to each
object on their creation.We can also overload
constructors.So we can initialize objects with diff params.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is consumer in java?
What are the core java topics?
Does java initialize arrays to zero?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
Is java free for businesses?
Can we force the garbage collection to run?
What is the argument in java?
What is locale in java?
What are register variables what are the advantages?
How to convert string to char and vice versa?
Is empty in java?
What is the purpose of garbage collection in java?
What differences exist between iterator and listiterator?
What is thread synchronization in java?
What is the vector class in java programming?