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 can we create the ui using netbeans,having the code?
What are the new features about Java se 8 ?
What is scrollable resultset in java?
What is war file in java?
What is entitymanager in java?
What's the difference between local, global and universal groups? : java security
What is the difference between swing and awt components?
What is stateless in java?
What is java bean class?
What is log4j in java?
What is transactional in java?
What is the meaning of the words public, static and void?
What is the use of jprofiler?
What about products that claim to block java applets at a firewall? : java security
In a barber shop there are 2 doors. customer come in 1 door, leave in other. minimum # of chairs. barber spend his life in cutting. always barber can cut 1 customer. few chairs in the shop. if barber busy customer waits, if chairs full, customer leave. if no customer, barber sleeps. treat barber and customer as 2 threads. you can use Semaphore class with arrive and depart and count as parameter.