Introduction To Java

From Compsci.ca Wiki

(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
* Java is a library.  It's a set of code that's already been written, and which Java programmers can use to make their lives easier.
* Java is a library.  It's a set of code that's already been written, and which Java programmers can use to make their lives easier.
* Java is a system for running programs written in the Java language.  When Java code is "compiled", rather than being transformed into machine code that can be run by the physical CPU in your personal computer, it's transformed into a machine code that the Java Virtual Machine can run.  Thus anywhere the Java Virtual Machine runs, your Java code can run.
* Java is a system for running programs written in the Java language.  When Java code is "compiled", rather than being transformed into machine code that can be run by the physical CPU in your personal computer, it's transformed into a machine code that the Java Virtual Machine can run.  Thus anywhere the Java Virtual Machine runs, your Java code can run.
 +
 +
== How do I get Java? ==
 +
 +
Head on over to http://java.sun.com and download the Java SE 5.0 Software Development Kit.  This includes the compiler which turns Java code you've written into machine code for the Java Virtual Machine.  The Java Virtual Machine and standard library are also installed so you can run programs.
 +
 +
== What else do I need? ==
 +
 +
 +
You'll also need a plain text editor.  On Windows, Notepad will work, but I'd recommend something like [http://www.textpad.com Textpad].  Line numbers in particular help.

Revision as of 20:33, 9 October 2008

Contents

Introduction to Java: Wiki Edition

What is Java?

  • Java is a language in which we can write programs.
  • Java is a library. It's a set of code that's already been written, and which Java programmers can use to make their lives easier.
  • Java is a system for running programs written in the Java language. When Java code is "compiled", rather than being transformed into machine code that can be run by the physical CPU in your personal computer, it's transformed into a machine code that the Java Virtual Machine can run. Thus anywhere the Java Virtual Machine runs, your Java code can run.

How do I get Java?

Head on over to http://java.sun.com and download the Java SE 5.0 Software Development Kit. This includes the compiler which turns Java code you've written into machine code for the Java Virtual Machine. The Java Virtual Machine and standard library are also installed so you can run programs.

What else do I need?

You'll also need a plain text editor. On Windows, Notepad will work, but I'd recommend something like Textpad. Line numbers in particular help.

Personal tools