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


Please Help Members By Posting Answers For Below Questions

What is meant by annotations in java?

480


What is interceptors in java?

485


What is type_scroll_insensitive in java?

479


Differences between intermediate operations and terminal operations of java 8’s stream api?

481


Why do we need new date and time api in java se 8?

482






How can c# app request minimum permissions? : java security

465


What if I do not provide the string array as the argument to the method?

497


What is gpt and gpc? : java security

513


Can an application have multiple classes having main method?

482


Is lambda cheaper than ec2?

490


Can we write lambda without functional interface?

453


What is loose coupling in java?

465


What java systems libraries and methods are available for me to use?

452


Which class is the superclass of every class?

519


What is the difference between deep copy and shallow copy in java

551