This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Bizarre declaration Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Bizarre declaration" Watch "Bizarre declaration" New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bizarre declaration
 
Similar Threads
onload
build.xml question
Why we live?
Netscape7.1 and window.createPopup()
input type=file