1_-_New_Java_Introduction

1_-_New_Java_Introduction - Introduction to Java...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to Java  Programming
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Java Program Development Process Edit the source code with text editor or IDE Write the Java class code and store in a file Source file name ends with .java extension Source file name must match the name of the public class in the file Compile the Java source file Compiler generates a fill containing Java bytecodes Compiled file has same name as the class, but has a .class extension Load the file into the Java Virtual Machine (JVM) JVM locates bytecode file with class name and .class extension Reads class file into JVM memory space Verify that the bytecodes are valid JVM Bytecode Verifier confirms bytecodes do not violate any security restrictions which might apply to the class being executed Execute the bytecodes JVM translates bytecodes into machine language as it executes
Background image of page 2
The Java Goal: Build Once, Run  Everywhere Java Bytecode files are portable Can be moved from one system to another and executed without rebuilding C++ executables only run on the type of system for which they were built – not portable Java portability somewhat limited Different systems may be running different Java releases New releases of Java are backward compatible New releases contain new features that older releases don’t have
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Java Resources on the Web http://java.sun.com/javase/downloads/index.jsp Web page with links to get the latest releases of the Java Development Kits (JDK), the Java Runtime Environments (JRE), and the NetBeans Integrated Development Environment http://java.sun.com/developer/onlineTraining/ This web page contains links to many different tutorials covering all aspects of Java development http://java.sun.com/javase/6/docs/api/ Main Java 6 on-line documentation site http://www.eclipse.org/callisto/java.php Web page with access to Eclipse IDE downloads and tutorials
Background image of page 4
Java Applications A Java Application is a type of Java program that can be executed as an independent program by the JVM Similar to a C++ executable, but the JVM still must do the work Every Java application program has a main method!!! There are other types of Java programs such as applets Only applications contain the main method.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The Welcome  Application public class Welcome // Welcome is the name of this class { // The following line makes this a Java application! public static void main(String args[])
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 22

1_-_New_Java_Introduction - Introduction to Java...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online