Class Modifier can be [public , protected , private , abstract , static , final and strictfp ] class box { ... ... } Please correct if I am wrong. Abstract - Implementation is incomplete. final - Final and cannot be subclassed. strictfp - float conversion of all local var , mem variable. static - ?? when a class can be static? public - only one public class in a file. protected - what ? private - what? some brief explanation on static , public , protected and private for class modifiers
public means that it can be used by just about anything, it's a 'friendly class private means that it can only be accessed with in that package, or 'un-friendly' other than that i know but i don't, know what i mean?
All of those are valid class modifiers except strictfp - I've never heard of that one. Some of those modifiers can only be used on inner classes: protected, private, and static
strictfp is a real keyword in Java 1.2, and it is a valid class modifier. It's defined in this PDF document, which can be found from the JLS by going to Clarifications and Amendments. Sun is long overdue to produce an updated JLS that incorporates these changes. At the very least they need to get rid of that stupid PDF file and replace it with HTML. Ah well...