Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/hst/training/events/Java/SSD981214java/Java1.html
Дата изменения: Unknown
Дата индексирования: Sun Dec 23 13:24:39 2007
Кодировка:

Поисковые слова: sunrise
Beginner's OOP and Java

Introduction to Object-Oriented/Internet Programming with Java I




The objective of this course is to help you to understand some fundamental basic concepts behind the Java technology. The audience is assumed to have little or no prior exposure to Java and Object-Oriented programming. Here we will cover the basics of the Java technology. The topics will help you to understand how to use Java to create, access, and support Java applications and applets. We will also discuss the portability features of Java and how they are changing the way Web users access applications at the desktop level.

In the next few sessions, we will:





Topics:





What is "Java"

An early description of the Java language from Sun

Java: A simple, objected-oriented, distributed, interpreted, robust, secure, architecture neutral, portable, high-performance, multithreaded, and dynamic language.



A Simple Example - Hello World


Here, we will do the "Hello World" program in Java.

Filename MUST be HelloWorld.java, since the class name is HelloWorld

public class HellowWorld
{

public static void main(String[] args)
{

System.out.println("Hello World!");

}

}


At the prompt, you would:

javac HelloWorld.java

java HelloWorld



A More Detailed Look at the Java Technology


New Additions



The Java Object-Oriented Programming Language

Application vs. Applet

One reason behind these distinctions has to deal with security issues.


The Java Virtual Machine (JVM)


Java applications and applets need the JVM in order to run.

JVM:



Java - as a programming language for Internet applications


Java - Pros and Cons

Pros:


Cons:



Object-Oriented Programming & Application Development


To develop Java applets and applications, one must first understand the fundamental concepts of object-oriented programming (OOP) and application development. OOP is quite different from traditional programming approaches, quite different from Fortran, Pascal, and C programming.


Object-Oriented Concepts


Definitions

Language Properties


Application Development

Functional/Traditional


Object-Oriented Approach



Resources

One of the main source of Java resources is the Sun Java website:

http://www.javasoft.com/


Detail documentations can be found at:

http://www.javasoft.com/docs/index.html


Also see http://www.oreilly.com/catalog/books/javanut2/ for Java examples available for downloading as noted in the Java in a Nutshell reference.

Several good books:

Java in a Nutshell by David Flanagan, from O'Reilly.

Java - How to Program by Deitel & Deitel, from Prentice Hall.

Inside Java by Siyan & Weaver, from New Riders Publishing.

The Java Series, from Addison-Wesley.




Paul Lee
update: 12/14/98