what are the types of constructer explain with example
Answer Posted / kailash
there are two types of Constructors .
1. Parameterized Constructor inwhich we give arguments .
2. Default constructor , there no argument is given .
for each class there must be a defult constructor .
Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What is stateless object in java?
What is lambda expressions action func and predicate?
Spring framework ---Can somebody explain me in easily understandable format about AOP, IOC and DI, so that i can explain in interview rather than just telling what is available in net. I am not able to understand that also. I am new to Spring
What is proxy object in java?
What is the difference between collection and stream?
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.
How do I open the java console in windows 10?
What is rxjava2?
What is a jvm?
What is @resource annotation in java?
Why are command line arguments passed as a string?
How do I open the java control panel?
What is java flatmap?
Explain main thread under thread class execution?
What is explicit casting?