Back to Basics with JDK 1.4 G Christopher Matthews email:
[email protected]
Notices • The following terms are copyrights or trademarks in US and/or other countries. - Java - Sun Microsystems - CJUG
Introduction to Java • • • • • •
The Basics The Language The Framework Components What’s new in Java SDK 1.4 ? Additional Resources . Questions ?
The Basic • • • •
What is Java ? How to get started ? What is a JDK and JRE ? Where do you get it ?
CJUG Web Site – www.cjug.net
The Language • • • • • • • • •
Object Oriented (OO) Language Architecture Neutral Vendor Neutral Object is parent to all Classes Built in Security Model Built in Exception Handling Built in Serialization Built in Threading & Synchronization Built in Memory Management (garbage collection)
The Language (cont.) • Integration to Legacy System (JNI) • Scalability (JNI, Sockets, Threads, IO, etc) • Inherit Internationalization Support
Building an Application • Create a Class file – HelloWorld.java (file) for HelloWorld class
• Define main entry point – public static main( String args[] )
• Do some work – System.out.println( “Hello World CJUG !” );
What are applets ? • Applets are applications with predefined constraints • What constraints ? – – – –
Extends Applet class Security ( loading, execution, and access) Entry points (init, term, start, stop) Launched from and HTML page usually via browser or applet viewer
What’s Next ?
Framework Components
*Illustration copyright of Sun Microsystems.
What’s new in Java SDK 1.4 ? • Massive Scalability / Record-Break Performance 58% faster that 1.3.1 • New I/O architecture (mmap, locking, concur io read/write) • Improved Debugging (keyword assert, hotswap code, debug through JITed/Hotspot code) • Numerous Security Enhancements (JAAS, JSSE, JCE, JAAS, single sign-on, cert validation, dynamic policies ) • Native XML JAX Pack Support (SOAP, Dynamic Binding, XML, XSL support)
What’s New (Cont. 2) • • • •
JavaBeans portable persistence API Enhanced JNI Support (shared data structures) Increased performance of reflection execution Enhanced serviceability (Logging API, Chain Exception Handling, Improved Error reporting) • JDBC 3.0 (Connection Pooling, Statement Pooling, unified access to databases, spreadsheets, flat files ) • Tighter CORBA Integration ( Full INS complience, Portable ORG adapter) • Full Unicode 3.0 Support (Internationalization)
What’s New (Cont. 3) • High Performance Graphics (JFC/Swing) • Full Unicode 3.0 Support (Internationalization)
Where is Java going ? • Embedded Space (60% 3GL Next Generation Communicators/Cell Phones run Java) • Grid Computing ( Open/scalable/cross platform) • Web Services (Large adoption, stable, tested)
Additional References • Sun Java JDK Site – http://java.sun.com/j2se/1.4/index.html – Java Security 2nd Edition – Oreilly ISBN 0-596-00157-6 – Java Swing – Oreilly ISBN 1-56592-455-X – Java Network Programming – Oreilly – ISBN 1-56592-227-1 – Java Grid computing - http://www.jxta.org
Questions ?