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
How long can a lambda function run?
What is repository pattern in java?
What are the benefits of a jar file?
What is aop in java?
How can one prove that the array is not null but empty?
What is http session in java?
How can I swap two variables without using a third variable?
there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.
Can I use openjdk for commercial?
Explain issues of old java date api?
What is @qualifier in java?
How can I write a program that takes command line input?
Why do we need framework in java?
What are anonymous methods and lambda expression?
In java what is the difference between sleep() and wait() .