what is the constructor and how many types of constructors are used in java?
Answer / Sakshi Upadhyay
A constructor is a special method that is used to create and initialize objects in Java. There are two types of constructors: default constructor (no arguments) and user-defined constructor (with arguments).
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a stack class in java ?
1 Answers Akamai Technologies,
What happens if we override only equals?
What is an example of character?
What is a protected method?
What is the difference between yielding and sleeping in java programming?
What is a parameter used for?
What is the vector class in java programming?
What is the use of StringTokenizer class?
What are recursive functions?
What are library required to connect to excel sheet.
What is the importance of static variable?
Write a java program to get a string of words and print the numbers of each word count in descending order