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;
}


Top 5 Free Networking Tools

Bookmark What is a Java Class?

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.