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
What is regex used for?
Explain different ways of creating a thread. Which one would you prefer and why?
Why should we use singleton pattern instead of static class?
What is null mean in java?
When can we say that threads are not lightweight process in java?
Explain about collection interface in java?
What is an accessor?
What is difference between identifier and variable?
What are the steps involved to create a bean?
How many bits is a string in java?
Define jit compiler?
Is a boolean variable?
What is the difference between a synchronized method and a synchronized block?
What are static blocks and static initalizers in java ?
What is the difference between this() and super() in java?