Can pojo have constructor?



Can pojo have constructor?..

Answer / Pooja Rastogi

Yes, a POJO (Plain Old Java Object) can have a constructor. In fact, having a constructor can be beneficial for initializing the object's state.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

Enlist and explain the main methods associated with the resource interface.

1 Answers  


How many modules are there in spring framework and what are they?

1 Answers  


What is use of dao design pattern?

1 Answers  


What is bean in spring with example?

1 Answers  


What is difference between spring and hibernate?

1 Answers  


What are features of spring ?

1 Answers  


What is path variable in spring?

1 Answers  


Which orm does spring support?

1 Answers  


What is difference between @restcontroller and @controller?

1 Answers  


What do you know about the different scope of spring bean?

1 Answers  


What do you mean by dao?

1 Answers  


What is logback?

1 Answers  


Categories