Jun 16 2010

What Is A Java Program?

A Java program is a collection of one or more classes, with one of them containing the program’s execution starting point. A Java source file can contain more than one class definition.

The Java 2 SDK enforces the rule that at the most one class in the source file has public accessibility. The name of the source file is comprised of the name of this public class with .java as extension.

Each class definition in a source file is compiled into a separate class file, containing Java byte code. The name of this file is comprised of the name of the class with .class as an extension. All programs must be compiled before they can be run.

TAGS:

3 Comments on this post

Trackbacks

  1. Java Programming Language: Java Basic Elements wrote:

    [...] any other programming language, the Java programming language is defined by grammar rules that specify how syntactically legal constructs can be formed using the [...]

    June 18th, 2010 at 12:28 pm
  2. Java Guide: Evaluation Order in Arithmetic Expressions | Free The Internet wrote:

    [...] Java guarantees that the operands are fully evaluated from left to right before an arithmetic binary operator is applied. Of course, if evaluation of an operand causes an exception, the subsequent operands will not be evaluated. [...]

    June 29th, 2010 at 9:47 am
  3. Java Programming: Strict Floating-Point Arithmetic: strictfp | Free The Internet wrote:

    [...] floating-point arithmetic in Java is defined in accordance with the IEEE-754 32-bit (float) and 64-bit (double) standard formats, the language [...]

    July 2nd, 2010 at 10:07 pm

LEAVE A COMMENT

Subscribe Form

Subscribe to Blog

Spam Protection by WP-SpamFree