Professional Documents
Culture Documents
D67238GC20 Les01
D67238GC20 Les01
Introduction
Course Goals
• This course covers the core APIs that you use to design
object-oriented applications with Java. This course also
covers writing database programs with JDBC.
• Use this course to further develop your skills with the Java
language and prepare for the Oracle Certified
Java SE 7 Programming 1 - 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Course Objectives
Java SE 7 Programming 1 - 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Course Objectives
(continued)
• Manipulate files, directories, and file systems using the
JDK7 NIO.2 specification
• Perform multiple operations on database tables, including
Java SE 7 Programming 1 - 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Audience
Java SE 7 Programming 1 - 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Prerequisites
Java SE 7 Programming 1 - 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Class Introductions
Java SE 7 Programming 1 - 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Course Environment
Classroom PC
In this course, the following products are preinstalled for the lesson practices:
• JDK 7: The Java SE Development Kit includes the command-line Java compiler
(javac) and the Java Runtime Environment (JRE), which supplies the java command
needed to execute Java applications.
• Firefox: A web browser is used to view the HTML documentation (Javadoc) for the Java
SE Platform libraries.
• NetBeans 7.0.1: The NetBeans IDE is a free and open-source software development
tool for professionals who create enterprise, web, desktop, and mobile applications.
NetBeans 7.0.1 fully supports the Java SE 7 Platform. Support is provided by Oracle's
Development Tools Support offering.
• Java DB: Java DB is Oracle's supported distribution of the open-source Apache Derby
100% Java technology database. It is fully transactional, secure, easy-to-use,
standards-based SQL, JDBC API, and Java EE yet small, only 2.5 MB.
Java SE 7 Programming 1 - 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Platform-Independent Programs
Java technology applications are written in the Java programming language and compiled to
Java bytecode. Bytecode is executed on the Java platform. The software that provides you
with a runnable Java platform is called a Java Runtime Environment (JRE). A compiler,
included in the Java SE Development Kit (JDK), is used to convert Java source code to Java
bytecode.
Java SE 7 Programming 1 - 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Java SE 7 Programming 1 - 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Developer
Year Platform
Version (JDK)
1996 1.0 1
1997 1.1 1
Java SE 7 Programming 1 - 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
1. Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html.
2. Choose the Java Platform, Standard Edition (Java SE) link.
3. Download the version that is appropriate for your operation system.
4. Follow the installation instructions.
5. Set your PATH.
Java SE 7 Programming 1 - 12
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Enterprise Environments
In this course, you develop Java SE applications. There are standard patterns you need to
follow when implementing Java SE applications, such as always creating a main method that
may be different when implementing enterprise applications. Java SE is only the starting point
in your path to becoming a Java developer. Depending on the needs of your organization, you
may be required to develop applications that run inside Java EE application servers or other
types of Java middleware.
Often, you will also need to manipulate information stored inside relational databases such as
MySQL or Oracle Database. This course introduces you to the fundamentals of database
programming.
Java SE 7 Programming 1 - 13
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Java SE 7 Programming 1 - 14
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
JCP.next
The JCP produces the JSRs that outline the standards of the Java platform. The behavior of
the JCP itself is also defined and improved through the JSR process. The JCP is evolving and
its improvements are defined in JSR-348. JSR-348 introduces changes in the areas of
transparency, participation, agility, and governance.
• Transparency: In the past, some aspects of the development of a JSR may have
occurred behind closed doors. Transparent development is now the recommended
practice.
• Participation: Individuals and Java User Groups are encouraged to become active in
the JCP.
• Agility: Slow-moving JSRs are now actively discouraged.
• Governance: The SE and ME expert groups are merging into a single body.
Java SE 7 Programming 1 - 15
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
OpenJDK
Java SE 7 Programming 1 - 16
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Still Free
Java (Oracle JDK) is freely available at no cost. Oracle offers advanced commercial solutions
at cost. The previously offered “Java for Business” program has been replaced by Oracle
Java SE Support, which provides access to Oracle Premier Support and the Oracle Java SE
Advanced and Oracle Java SE Suite binaries. For more information, visit
http://www.oracle.com/us/technologies/java/java-se-suite-394230.html.
Java SE 7 Programming 1 - 17
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Additional Resources
Topic Website
Education and Training http://education.oracle.com
Product Documentation http://www.oracle.com/technology/documentation
Product Downloads http://www.oracle.com/technology/software
The table in the slide lists various web resources that are available for you to learn more
about Java SE programming.
Java SE 7 Programming 1 - 18
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Summary
Java SE 7 Programming 1 - 19
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED