what is default constructor and parameterised constructor
with example?
Answer / tushar
Default constructor: this constructor is created by the compiler automatically whenever an object is created.User don't have to write default constructor every class has its default constructor
Parameterized constructor: this constructor is exclusively written by the coder to assign the initial value to an instance variable.By creating parameterized constructor you can overwrite the default constructor.
| Is This Answer Correct ? | 1 Yes | 0 No |
What is exception propagation?
What is valid keyword in java?
Is there is any error if you have multiple main methods in the same class?
What is stringjoiner ?
What is time complexity java?
Differentiate between nested and inner class in java.
0 Answers Akamai Technologies,
What is meant by class loader? How many types are there?
String class is defined under which package in java?
How does abstract modifier work?
explain the concept of inheritance with an example?
How do you compare two strings? any predefined method for this?
os is developed in c no java is more secured then c na why dont the os developed is developed using java