Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

syntax

  Asked By: Jasmine    Date: Aug 23    Category: Java    Views: 483
  

class Test{
;;{;;};
}

Why does this code compile?
Every syntax construct is ment for something, can someone explain
what good can i get with this ";;{;;};"-constuction.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Fedde Bakker     Answered On: Aug 23

This looks suspiciously like someone's homework....

 
Answer #2    Answered By: Taylor White     Answered On: Aug 23

The ; is the shortest operation you can do. I can't say it's useful
for something.

 
Didn't find what you were looking for? Find more on syntax Or get search suggestion and latest updates.




Tagged: