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 we write any code after throw statement?
Explain inheritance in java?
What are the important features of Java 11 release?
How do you declare a destructor in java?
What is difference between final and finally in java?
Write a program to print the pattern given below
What is methodological theory?
What is java regex?
Can we rethrow the same exception from catch handler?
What is the use of using enum to declare a constant?
Can interface be private in java?
Can we declare a class as static?
What is the use of System class?
What is difference between this and super keyword?
How objects of a class are created if no constructor is defined in the class?