| Author |
Bizarre declaration
|
Shalini Srivastav
Ranch Hand
Joined: Jul 21, 2012
Posts: 86
|
|
Any comment about it ?
|
 |
Greg Brannon
Bartender
Joined: Oct 24, 2010
Posts: 530
|
|
|
Context? Why is this something you or we should bother with?
|
Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
|
 |
Shalini Srivastav
Ranch Hand
Joined: Jul 21, 2012
Posts: 86
|
|
|
I never used colon after declaration of classes or interfaces lol.
|
 |
Greg Brannon
Bartender
Joined: Oct 24, 2010
Posts: 530
|
|
A semi-colon indicates the end of a statement or line of code in Java, even an empty one.
The second line of your post is the same as,
An empty class, MyClass, followed by an empty line of code.
|
 |
 |
|
|
subject: Bizarre declaration
|
|
|