Int Programming--Malone Basics of Java Programming (A Work In Progress)

Dec 1st 2010, 21:23
Download:  29
View:  334 times
Bookmark
Rating:  

Recent Feedback

Be the first to comment

You must login to add comments

nonono
2 subscriber

nonono
Send Message

Description

What Constitutes a Java Program?
A Java program consists of one or more source files.
Each source file is called .java, where is the name of the
class contained in that source file and .java is the extension that identifies the file as a
Java source code file. In general, each source file contains one class. The name of the
class must match the name of the file (without the extension) exactly.
To execute a Java program, you first need to compile the source code into byte code.
Byte code files have the name .class. If you’re working from the shell, this
is done using the javac command (where “c” is for compiler). Usually we will be
compiling using the Xcode IDE. Once compiled, the program is executed using the
Java interpreter (a.k.a. the Java Virtual Machine or JVM). From the shell, the JVM is
invoked with the “java” command. Again we will usually be doing this with the Build and
Go or Debug options of the Xcode IDE.

Share

Tags

Java Programming , Technology

Meta Information

  • Author : Michael Malone
  • Generator : Mac OS X 10.4.4 Quartz PDFContext
  • Created : Thu Sep 7 10:50:48 2006
  • Last Modified : 1368649694
  • Total Pages : 5

Share

Report