Why the object needs semicolon at the end..??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why the object needs semicolon at the end..???

10th Oct 2017, 2:03 PM
Abhishek
Abhishek - avatar
2 Answers
+ 10
putting ; is standard way end a statement in java
10th Oct 2017, 3:11 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
0
For a statement, yeah. But that's a constructer right, there was no use of semicolon in the constructor chapters.
10th Oct 2017, 2:18 PM
Abhishek
Abhishek - avatar