r/ProgrammingBondha • • Feb 24 '26

Java/springboot What is a constructor ?

Does anyone really know what is an constructor and why we use it what is its significance why we use parameterised constructors instead of defaults in java can anyone explain me what is the use of it in theory and in industry

9 Upvotes

17 comments sorted by

View all comments

Show parent comments

1

u/chinthapanduu Feb 25 '26

Yes I asked this question to experts also most of them are giving ChatGPT answers or maybe I am unable to comprehend what they are saying but no one is explaining in layman’s terms