What is the difference between constructors and normal methods?
Answer:
-Constructors must have the same name as the class and can not return a value.
-They are only called once while regular methods could be called many times and it can return a value or can be void.
Share To Friends Via:
More Questions For Programming in Java:
What is Java? (Answered) What is Java? . Posted On:Sat 20, March 2021 20:03:42 pm