ECE309Spring2010Lecture2

ECE309Spring2010Lecture2 - ECE309 - Lecture 2 - Spring 2010...

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

View Full Document Right Arrow Icon
ECE309 - Lecture 2 - Spring 2010 - Thursday January 14
Background image of page 1

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

View Full DocumentRight Arrow Icon
Lab1 Therapist is due tonight 11:45 Overview Today's topics prepare the student to program lab 2. Topics for today are: Can everyone now see ECE309 files (in the "common" directory) on Wolfware? Personal items: Thomas Russel - your NCSU mailbox is full Michael Plautz - your NCSU mailbox is full See "Java Tutorial" "tracks" at http://java.sun.com/dics/books/tutorial A picture of OBJECT-ORIENTED ! Why Java is portable and other languages arn't Storage areas (may run into Lecture 3) A "call" is a branch (probably in Lecture 3) Strings are strange (no doubt in Lecture 3)
Background image of page 2
No wonder they call it OBJECT-ORIENTED programming! Look at a memory diagram of Lab2 TherapistGUI: ____________________________________________________ | | | ________ ________ ________ | | / \ / \ / \ | | / answer \ / answer \---->/ String \ | | \ textfield/ \ label / \ / | | \________/ / \________/ \________/ | | ^ / | | | / | | ___|____ / ________ ________ | | / \/ / \ / \ | | / top \--->/ question\ / String \ | | \ panel / \ textfield/ \ / | | \________/ \________/ \________/ | | ^ | ^ | | | | | | | ___|____ ___V____ ____|___ | | / \ / \ / \ | | / Window \<---/Therapist \---->/ reply \ | | \ / \ / \ array / | | \________/ \________/\ \________/ | | | ^ \ | | | | | \ | | | ___V____ ___|____ | ____V___ | | / \ / \ | / \ | | / bottom \--->/ log \ | / String \ | | \ panel / \ button / | \ / | | \________/\ \________/ | \________/ | | | \ | | | | \ | | | ___V____ \ ________ | ________ | | / \ \ / \ | / \ | | / error \ / error \--|->/ Font \ | | \ textfield/ \ label / | \ / | | \________/ \________/ | \________/ |
Background image of page 3

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

View Full DocumentRight Arrow Icon
| | | | ________ ________ | ________ | | / \ / \ / / \ | | / File \ / Buffered \/ / String \ | | \ Writer /<---\ Writer /---->\ / | | \________/ \________/ \________/ | | | |____________________________________________________| NOT SHOWN: clearButton (calls Therapist) ,questionLabel, scrollPane, ContentPane, Color, Data, GridLayout, IOException, and many Strings! The Java Class Library and JVM are the key to Java's PORTABILITY! ___________________ | | | Your Java Program | |_______________ | _| <-- program-to-JVM interface is | V | the same with every JVM |vendor-provided JVM| |_______________ | _| <-- JVM-to-O/S is different in | V | each JVM. The vendor's JVM | operating system | is very platform-specific. |___________________| Some of you compile your programs on Windows, some on a Mac. You all send your .class files to the TA. The TA runs your programs (on a whatever machine) without recompiling your program ! Amazing! This is because: 1. ALL the FUNCTION we need can be implemented INSIDE the Java language. (NO calls are required from our program to the operating system to do multithreading or communications or graphics, for example, thanks to the enormous range of function provided in the Java Class Library.)
Background image of page 4
2. The JVM is PLATFORM-SPECIFIC. When a Java program is running on an IBM mainframe, it is IBM (not Sun MicroSystems) that
Background image of page 5

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

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

This note was uploaded on 01/25/2010 for the course ECE 309 taught by Professor Bowman during the Spring '09 term at N.C. State.

Page1 / 12

ECE309Spring2010Lecture2 - ECE309 - Lecture 2 - Spring 2010...

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

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