Learn your way! Get started

Java SE, Part 1: Objects, Classes, and Constructors

with expert Gene Van Sant


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack
  • Power Pack Plus

Release date Release date 9/3/2010
Level Level Beginner
Runtime Runtime 8h 48m
Closed captioning Closed captioning Included
Transcript Transcript Included
eBooks / courseware eBooks / courseware Included
Hands-on labs Hands-on labs Included
Sample code Sample code Included
Exams Exams Included


Enterprise Solutions
Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

Java was introduced many years ago not for the internet but has since expanded to be an industry standard for web pages. This course introduces the Java programming language and how to develop Java applications using Eclipse. You will learn the syntax of the Java programming language, object-oriented programming using Java, classes, Constructors, class methods and control structures.

Prerequisites

This course is intended for programmers who are interested in adding Java to their skills. The students should be familiar with object-oriented principals and the concept of object-oriented programming.

Learning Paths

This course will help you prepare for the following certifications and exams:
Java SE 5/SE 6
Java SE 5 Programmer
Java SE 7 Programmer I
Java SE 6 Programmer
1Z0-853: Java SE 5 Programmer Certified Professional Exam
1Z0-850: Java SE 5 and 6, Certified Associate Exam
1Z0-851: Java SE 6 Programmer, Certified Professional Exam
1Z0-803: Java SE 7 Programmer I

This course is part of the following LearnNowOnline SuccessPaths™:
Java Development

Meet the expert

Gene Van Sant Gene Van Sant has over two decades of experience as a software/systems implementer and solutions integration architect. He has experience as a contractor and maintains instructor certifications from IBM and others. Gene balances his career between implementing and automating full blown real world solutions and teaching classes/workshops on emerging technologies and products. This allows Gene to gain valuable extensive real world experience while also staying ahead of the wave with cutting-edge expertise.


Course outline



Module 1

Overview of Java (40:06)
  • Introduction (01:35)
  • History of Java (03:19)
  • Benefits of Java (04:13)
  • What is Java (02:20)
  • What"s This "Virtual Machine"? (01:01)
  • Comparison to Other Languages (04:55)
  • Java Programs (02:03)
  • Basic Java Development Tools (02:34)
  • Demo: Basic Java Development Tools (12:19)
  • Java Editions (02:02)
  • Example - HelloWorld (00:29)
  • Java Classes (00:37)
  • Main Methods (00:47)
  • Statements (00:22)
  • Summary (01:24)

Module 2

Java Tools In Eclipse (38:38)
  • Introduction (02:32)
  • Eclipse Platform (05:59)
  • Eclipse Workspace (02:20)
  • Perspectives, Views & Editors (04:30)
  • Demo: Perspectives, Views & Editors (06:11)
  • Basic Operations with Eclipse (01:53)
  • The Java Perspective (01:12)
  • The Debug Perspective (02:18)
  • Navigator View (01:03)
  • Package Explorer (00:42)
  • Outline View (01:09)
  • Problems View (03:05)
  • Demo: Problems View (05:36)
  • Summary (00:02)
Java Tools in Eclipse 2 (36:28)
  • Introduction (00:15)
  • Eclipse Preferences (01:42)
  • Demo: Eclipse Preferences (04:43)
  • Build and Validation (02:16)
  • Code Completion, Templates and Snippets (04:38)
  • Searching (02:33)
  • Configure Compiler Class Path (03:53)
  • Demo: Configure Compiler Class Path (08:30)
  • JRE Switching (02:17)
  • Demo: JRE Switching (04:32)
  • Summary (01:05)

Module 3

Basic Object Concepts (43:27)
  • Introduction (01:22)
  • What Is An Object? (01:03)
  • State (00:40)
  • Behavior (00:32)
  • Encapsulation (00:49)
  • Encapsulation Examples (00:46)
  • Classes vs. Objects (01:11)
  • Inheritance (01:59)
  • Demo: Inheritance (15:18)
  • Polymorphism (02:20)
  • Demo: Polymorphism (05:24)
  • Interfaces (03:19)
  • Benefits Of Objects (04:08)
  • Demo: Benefits Of Objects (03:42)
  • Summary (00:48)

Module 4

Basic Java Syntax (50:59)
  • Introduction (01:03)
  • Declaring and Initializing Variables (02:00)
  • Keywords (02:40)
  • Coding Tips - Variables (01:59)
  • Primitive Data Types (00:53)
  • Logical - boolean (01:06)
  • Textual - char and String (00:59)
  • Integral - byte, short, int, long (01:08)
  • Floating Point - float and double (00:47)
  • Literal Values (01:41)
  • Strings (01:19)
  • Creating Strings (00:33)
  • White Space (00:47)
  • Comments (01:25)
  • Demo: Comments (06:57)
  • Coding Tips - Comments (01:22)
  • Java Statements (00:27)
  • Coding Tips - Statements (00:44)
  • Scope of a Variable (02:47)
  • System.out/System.in (02:17)
  • Scanner Class (02:44)
  • Demo: Scanner Class (14:28)
  • Summary (00:41)

Module 5

Decisions (40:48)
  • Introduction (00:43)
  • Operator Categories (01:33)
  • Special Situations (00:18)
  • Binary Operators (00:31)
  • Integer Division (00:54)
  • Numeric Promotion (02:14)
  • Type Conversion Of Primitive Types (01:30)
  • Demo: Type Conversion of Primitive Types (04:24)
  • Unary Operators (01:03)
  • Relational Operators (00:24)
  • Logical Operators (01:26)
  • Bitwise Operators (00:14)
  • Bitwise Examples (00:55)
  • Shift Operators (00:31)
  • Overflow And Underflow (01:22)
  • Demo: Overflow And Underflow (02:14)
  • Assignment Operators (02:07)
  • Ternary Operator (00:40)
  • Demo: Ternary Operator (01:55)
  • Calculation Errors (01:15)
  • Demo: Calculation Errors (02:04)
  • Operator Precedence (00:49)
  • Precedence Examples (02:37)
  • Demo: Precedence Examples (01:35)
  • Combining Strings (01:33)
  • Demo: Combining Strings (04:52)
  • Coding Tips - Operators (00:50)
  • Summary (00:02)
Making Decisions (22:40)
  • Introduction (00:15)
  • Control Flow Statements (01:15)
  • "if" Statement (02:08)
  • "if...else" Statement (00:41)
  • Nested Statements (01:45)
  • "Short Circuited" Operators (01:31)
  • Demo: "Short Circuited" Operat (03:01)
  • Coding Tips - if & if-else (03:41)
  • Demo: Coding Tips - if & if-else (07:47)
  • Summary (00:31)

Module 6

Using Classes and Objects (32:10)
  • Introduction (00:54)
  • Objects, Instances, And Classes (01:09)
  • What Are Classes? (00:59)
  • Working With Classes And Objects (03:28)
  • Instantiation (01:40)
  • Instance Methods (03:56)
  • Object References (02:13)
  • Demo: Object References (05:35)
  • String Operations (01:06)
  • The Math Class (00:55)
  • Demo: The Math Class (08:57)
  • Summary (01:13)

Module 7

Writing Classes (42:02)
  • Introduction (00:52)
  • Why Define Your Own Classes (03:38)
  • Encapsulation (02:18)
  • Elements Of A Class (01:51)
  • Defining Classes (00:33)
  • Coding Tips - Class Definitions (02:49)
  • Fields (00:35)
  • Defining Fields (02:13)
  • Coding Tips - Fields (02:35)
  • Methods (02:00)
  • Defining Methods (00:37)
  • Passing Parameters (02:59)
  • Demo: Passing Parameters (04:23)
  • Overloading Methods (00:45)
  • Demo: Overloading Methods (04:02)
  • Coding Tips - Methods (02:08)
  • Local Variable vs. Instance Variables (01:25)
  • Demo: Local Variable vs. Instance Variables (05:16)
  • Summary (00:57)

Module 8

Controlling Access (23:59)
  • Introduction (00:53)
  • Controlling Access (02:23)
  • Data Hiding (00:37)
  • Encapsulation (00:46)
  • JavaBeans (01:28)
  • Demo: JavaBeans (17:46)
  • Summary (00:02)
Controlling Access 2 (21:18)
  • Introduction (00:15)
  • Packages (01:51)
  • Problems Solved With Packages (02:04)
  • Naming Packages (01:36)
  • Declaring Packages In Classes (00:32)
  • Package Access (01:01)
  • Demo: Package Access (13:54)
  • Summary (00:02)
Controlling Access 3 (21:13)
  • Introduction (00:15)
  • Import Statement (02:20)
  • Demo: Import Statement (04:22)
  • Using Classes From Packages (00:48)
  • Coding Tips - Import Statements (00:56)
  • Correlation To File Structure (01:25)
  • Class Path (01:32)
  • Demo: Class Path (02:46)
  • Java Core Packages (04:51)
  • Demo: Java Core Packages (01:23)
  • Summary (00:31)

Module 9

Constructors and Class Members (28:02)
  • Introduction (00:47)
  • Demo: Constructors and Class Members (06:39)
  • Constructors (01:05)
  • Multiple Constructors (00:39)
  • Defining Constructors (01:08)
  • Default Constructor (00:17)
  • Zero Argument Constructor (01:06)
  • Example - Calling Constructors (00:46)
  • "this" Keyword (02:29)
  • Using "this" to Call a Constructor (00:26)
  • Demo: Using "this" to Call a Constructor (11:45)
  • Using "this" to Set a Field (00:48)
  • Summary (00:02)
Constructors and ClassMembers2 (49:57)
  • Introduction (00:15)
  • Demo: Constructors and ClassMembers2 (05:39)
  • Class Members (01:28)
  • Examples Of Class Members (00:59)
  • Comparison: Instance Members (00:54)
  • Comparison: Class Members (01:10)
  • Use of Class Variables (01:04)
  • Demo: Use of Class Variables (04:40)
  • Static Class Methods (01:15)
  • Use of Class Methods (00:33)
  • Main Method And Command Line Arguments (01:09)
  • Demo: Main Method and Command Line Arguments (11:27)
  • Declaring and Using Constants (02:07)
  • Coding Tips - Class Members (00:34)
  • Useful Standard Class Members (00:37)
  • Demo: Useful Standard Class Members (06:01)
  • Static Initialization Blocks (02:15)
  • Demo: Static Initialization Blocks (06:34)
  • Summary (01:07)

Module 10

Control Structures (36:33)
  • Introduction (01:15)
  • "switch" Statement (02:28)
  • Example - switch (00:36)
  • Switch "Fall Through" (01:12)
  • "for" Loop (01:27)
  • Example - for (00:42)
  • Demo: Example - for (05:02)
  • "while" Loop (00:46)
  • Demo: "while" Loop (02:49)
  • "do...while" Loop (01:02)
  • Demo: "do...while" Loop (01:25)
  • Break Statement (01:56)
  • Example - break (00:31)
  • Labeled Statements (01:20)
  • Example - Labeled Break (00:43)
  • Continue Statement (01:14)
  • Example - Continue (00:27)
  • Example - Labeled Continue (00:28)
  • Coding Tips - Control Structures (01:08)
  • Demo: Control Structures (09:14)
  • Summary (00:38)