Explain role of constructor in a java application?
Answer Posted / harsh
Constructor is "object creator".
its role is to create objects thats it.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
can any body body expalin best definitions & best real time exaples for opps concepts.
What is internal variable?
How do you sort arrays in java?
What is a substitution variable?
Differentiate between a constructor and a method? Can we mark constructors final?
What are conditionals and its types?
You're given a Boolean 2D matrix, can you find the number of islands?
Can a string be null?
Explain the difference between treeset and treemap in java?
What is a map in java?
What is the argument in java?
What is an enumeration?
How many threads can java run?
What is meant by vector class, dictionary class, hash table class, and property class?
What are accessor methods in java?