What is a Java Class?
A Java class is a group of Java methods and variables.
Each Java source code file can contain one public class. The name of this public class must match the name of the Java source code file. If the public class is called "ballistics", then the filename would be "ballistics.java".
A sample Java class
class Ammunition {
int diameter;
int length;
String name;
}
|
Bookmark What is a Java Class?

