l2_pr_java1 - Things you need Sun Tutorial...

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

View Full Document Right Arrow Icon
1 A Very Brief Introduction to Java 16.410-13 Paul Robertson Things you need • Sun Tutorial – http://java.sun.com/docs/books/tutorial/information/download.html • Java: java (j2sdk-1_4_2_09-windows-i586-p.exe) – http://java.sun.com/j2se/1.4.2/download.html • Eclipse: (eclipse-SDK-3.1-win32.zip) – http://eclipse.org/downloads/index.php • Junit: (junit3.8.1.zip) – http://www.junit.org/index.htm • Online API reference http://java.sun.com/j2se/1.4.2/docs/api/index.html • Java in a Nutshell – a reference book Java vs. Scheme Java is not Scheme, but has similar semantics Garbage-collected, call-by-value Some important differences Statically typed (discover errors earlier) Built-in support for object-oriented programming Wider acceptance You will need to learn Syntax, libraries, OO programming Two Kinds of Values Primitives: int, float, char, boolean, … Created by writing literals, e.g., 3 or “a” Objects: String, PrintStream, ArrayList, … Composed of other values Created by calling a constructor (sometimes implicit) new ArrayList<Date>(); // empty sequence Operations are associated with the type, e.g., + with int addElement(Date) with ArrayList<Date> Variables and Assignment Variables exist in program text, e.g., int x Environment binds variables either to Primitive value (e.g.,
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/07/2011 for the course AERO 16.410 taught by Professor Brianwilliams during the Fall '05 term at MIT.

Page1 / 3

l2_pr_java1 - Things you need Sun Tutorial...

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

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