Use only alphanumeric characters in package names. : package « Java Source And Data Type « SCJP

Home
SCJP
1.Java Source And Data Type
2.Operators
3.Modifiers
4.Type Casting
5.Statements
6.Object Oriented
7.Thread
8.Utility Classes
9.File
SCJP » Java Source And Data Type » package 
1.3.3.Use only alphanumeric characters in package names.
package com.yourcompanyname.application;
//package com//yourcompanyname\\application; // error

public class MainClass{
   private int iValue;
}
1.3.package
1.3.1.The package name is a series of elements separated by periods.
1.3.2.Packages are identified by the package statement.
1.3.3.Use only alphanumeric characters in package names.
1.3.4.java.lang package is imported by default and does not need to be imported by an import statement.
1.3.5.Other than java.lang, every other package you use must be named in an import statement
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.