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
Can optional be null?
Please can anybody explain what exactly "the project architecture" means???
What are the advantages of java sockets?
What is rxjava2?
Why there are no global variables in java?
Is openjdk the same as jdk?
What is meant by rest api in java?
What are jpa repositories?
What are java’s rules regarding tabs, spaces and newline characters?
What is injection in java?
What is factory pattern in java?
What is a static method?
Describe the principles of oops.
What is aop java?
What is the difference between lambdas and delegates?