what is constructer?what are the type of constructer with
example.
Answer Posted / kool
A constructer has same name as class .it does not have any
data type in a program we can only have one constructer
with a class name because they can be overloaded.if we dont
create one the programe creates one for us.
public class kool{
/** constructer
public kool(){
*/
}
}
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
What is difference between map and flatmap in java 8?
What is class forname java?
Why do we only use the main method to start a program?
What happens if javac is not recognized?
What if the main method is declared as private?
What is maven in java?
Is openjdk the same as jdk?
What is the use of jprofiler?
Explain the common use of ejb?
What is the use of flatmap?
I run a web server. Am I at risk? : java security
Why is lambda expression used?
What is transaction management in java?
what is reflection api? How are they implemented?
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.