The position and presence and absence of semicolons in languages is not fixed by some law. It depends what the designers of the language thought and how they constructed the compiler. Different languages have semicolons in different places.
CR
Ar Yasoda
Greenhorn
Joined: Apr 04, 2007
Posts: 9
posted
0
thanks for replying...... but how can jvm can know that the class has been ended..
So the compiler works out the end of the class body by counting { and }. Exactly as srikanth ramu said. [ April 04, 2007: Message edited by: Campbell Ritchie ]