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

Поисковые слова: п п п п п п п п п п п п п п п п п п
Internet Programming with Java

Introduction to Object-Oriented/Internet Programming with Java III




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:



From Last Time...

Extending A Class (Inheritance)


Method Overriding




Method Overloading



Method Overloading Example


Fundamentals


More Fundamentals


Application vs. Applet



Hello World Applet


Exercise


The HelloWorldFrame application


At the last session, we did a study of the HelloWorldFrame Java application. We will now start modifying that program to incorporate new elements. The resulting program will do the following:

The Java application will display a button with "Hello World" and when the button is pushed an odd number of times, the button will display "I am odd" and the same message is printed to the console. When the button is pressed an even number of times, the button will display "I am even" and the same message is displayed to the console.


Here a set of code fragments will be supplied, and you will put them together and create the program that would accomplish the above tasks.


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: 3/29/99