Getting Started with Java: A Review for CIS 304 Students - Prof. Zhongming Ma, Study notes of Computer Science

Instructions for students in cis 304 on how to get started with java programming. It covers downloading and installing the java development kit (jdk) and eclipse ide, as well as obtaining the textbook and necessary compression software. The document also introduces the concept of java bytecodes and the java virtual machine (jvm), and explains how to navigate the java api documentation.

Typology: Study notes

2010/2011

Uploaded on 04/19/2011

bohemia-aidualk
bohemia-aidualk 🇺🇸

11 documents

1 / 15

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
CIS 304
Dr. Zhongming Ma
3/29/11
Java Review: Chapter 1
How to get started
with Java
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Getting Started with Java: A Review for CIS 304 Students - Prof. Zhongming Ma and more Study notes Computer Science in PDF only on Docsity!

CIS 304

Dr. Zhongming Ma

Java Review: Chapter 1

How to get started

with Java

Download JDK 6 (update 24)http://www.oracle.com/technetwork/java/javase/downloads/index.htmlJDK : java development kit. This is essentially what you need when you develop java programs.  Install Java : Run the .exe file and respond to the resulting dialog boxes.  You download Java SE 6 Documentation from the save URL.

Compression software

  • (^) WinRAR (ver. 4.0)
    • (^) Find and download from http://download.cnet.com
    • (^) With WinRAR, you can comparess a group of files

into one file (.rar or .zip format)

Downloadable files of the textbook

  • (^) Make learning easier
  • (^) http://www.murach.com/downloads/jse6.htm

1. Java GUI application

You’ll learn how to develop such a Java GUI application in CIS 304.

You’ll learn how to develop such a Java Applet in CIS 304.

2. Applet

Classes, bytecodes, and JVMs

 You can use any text editor to create, edit, and save a source program (.java file).  The Java compiler translates Java source code into a platform- independent format known as Java bytecodes. Files that contain Java bytecodes have the class extension.  The Java interpreter executes Java bytecodes. Java interpreters exist for all major operating systems.  A Java interpreter is an implementation of a Java virtual machine ( JVM ).  A Java application consists of one or more classes (i.e., .class files).

How Java compiles and interprets code source code (.java files) bytecodes (.class files) Text editor (e.g., textpad, notepad) Java compiler Java interpreter Java virtual machine (JVM) Operating system

How to navigate the API documentation  You can use your web browser to browse through the API documentation on your own system (if you’ve downloaded and installed it) or at the Java web site.  Related classes in the Java API are organized into packages, which are listed in the upper left frame of the documentation page.  When you select a package, all the classes for that package are listed in the lower left frame.  You can select a class from the lower left frame to display the documentation for that class in the right frame.  You can also select the name of the package at the top of the lower left frame to display information about the package and the classes it contains.

In class exercise: browsing the String class