Explain, why the constructor is required in implemented
class?
Answer Posted / sekhar
Constructor is like a method.It can be invoked as soon as
we create an object for the class.We can overload
constructor.to call them we need pass parameters in main
method.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Is intellij better than eclipse?
Name some classes present in java.util.regex package.
What is string pool?
What is cr keyboard?
What is the primitive type short?
Which sort is best in java?
How do you do absolute value in java?
What is method in java with example?
Does sprintf add a null terminator?
5 Coding best practices you learned in java?
What is 32 bit float?
What is the final blank variable?
What are JVM.JRE, J2EE, JNI?
What are the ways to instantiate the class class?
Can we have more than one package statement in source file ?