Answer Posted / sushila
constructor does not have a return type. it is not executed,
while loading class into the memory.
constructor is executed only once for each object.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the purpose of garbage collection in Java?
Why do we use string?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
How do you escape json?
What is static keyword?
What is the byte order of byte buffer?
How do you convert int to char in java?
What is java object name?
'A class is a template for an object' explain this statement.
What is the final keyword denotes?
Is there any sort function in java?
What is string intern in java?
Is a boolean variable?
Why can't we override private static methods?
what is the constructor and how many types of constructors are used in java?