No, a top level class can not be private or protected. It can have either "public" or no modifier.