what is constructer?what are the type of constructer with
example.
Answer Posted / sunil prasad
Constructor is a specail type of mrthod.constructor name
should be same with the class name
There is defferent type of construtor:-
default constructor
parameter constructor
default construtor automatically call when we create
object of class.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is meant by annotations in java?
What is interceptors in java?
What is type_scroll_insensitive in java?
Differences between intermediate operations and terminal operations of java 8’s stream api?
Why do we need new date and time api in java se 8?
How can c# app request minimum permissions? : java security
What if I do not provide the string array as the argument to the method?
What is gpt and gpc? : java security
Can an application have multiple classes having main method?
Is lambda cheaper than ec2?
Can we write lambda without functional interface?
What is loose coupling in java?
What java systems libraries and methods are available for me to use?
Which class is the superclass of every class?
What is the difference between deep copy and shallow copy in java