Instructor-led training
Introduction to Java for Non-C Programmers Training in Bastrop, Louisiana
This four day course is designed to provide a solid foundation in Java for programmers without syntax experience in a C-based language.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Bastrop, Louisiana or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
Getting Started with J2SE
What is Java?
How to Get Java
A First Java Program
Compiling and Interpreting Applications
The JDK Directory Structure
Datatypes and Variables
Primitive Datatypes
Declarations
Variable Names
Numeric Literals
Character Literals
String
String Literals
Arrays
Non-Primitive Datatypes
The Dot Operator
Operators and Expressions
Expressions
Assignment Operator
Arithmetic Operators
Relational Operators
Logical Operators
Increment and Decrement Operators
Operate-Assign Operators (+=, etc.)
The Conditional Operator
Operator Precedence
Implicit Type Conversions
The Cast Operator
Control Flow
Statements
Conditional (if) Statements
Adding an else if
Conditional (switch) Statements
while and do-while Loops
for Loops
A for Loop Diagram
Enhanced for Loop
The continue Statement
The break Statement
Methods
Methods
Calling Methods
Defining Methods
Method Parameters
Scope
So, Why All the static?
Object-Oriented Programming
Introduction to Object-Oriented Programming
Classes and Objects
Fields and Methods
Encapsulation
Access Control
Inheritance
Polymorphism
Best Practices
Objects and Classes
Defining a Class
Creating an Object
Instance Data and Class Data
Methods
Constructors
Access Modifiers
Encapsulation
Using Java Objects
Printing to the Console
printf Format Strings
StringBuilder and StringBuffer
Methods and Messages
toString
Parameter Passing
Comparing and Identifying Objects
Destroying Objects
Using the Primitive-Type Wrapper Classes
Autoboxing
Inheritance in Java
Inheritance
Inheritance in Java
Casting
Method Overriding
Polymorphism
super
The Object Class
Advanced Inheritance and Language Constructs
Enumerated Types - Pre-Java 5.0
Enumerated Types Today
More Enumerated Types
Abstract Classes
Interfaces
Using Interfaces
Comparable
Collections
Generics
Packages
Packages
The import Statement
Static Imports
CLASSPATH and Import
Defining Packages
Package Scope
Exception Handling
Exceptions Overview
Catching Exceptions
The finally Block
Exception Methods
Declaring Exceptions
Defining and Throwing Exceptions
Errors and RuntimeExceptions
Assertions
Input/Output Streams
Overview of Streams
Bytes vs. Characters
Converting Byte Streams to Character Streams
File Object
Binary Input and Output
PrintWriter Class
Reading and Writing Objects
Basic and Filtered Streams
Core Collection Classes
The Collections Framework
The Set Interface
Set Implementation Classes
The List Interface
List Implementation Classes
The Queue Interface
Queue Implementation Classes
The Map Interface
Map Implementation Classes
Appendix A - Introduction to Threads
Non-Threaded Applications
Threaded Applications
Creating Threads
Thread States
Runnable Threads
Coordinating Threads
Interrupting Threads
Runnable Interface
ThreadGroups
Appendix B - J2EE Overview
Introduction to J2EE
J2SE Building Blocks
Servlets, JSPs, and Web Applications
Web Services
Enterprise JavaBeans
Additional J2EE APIs
J2EE Clients
The J2EE Platform
Appendix C - Eclipse
Introduction to Eclipse
Installing Eclipse
Running Eclipse for the First Time
Editors, Views, and Perspectives
Setting up a Project
Creating a New Java Application
Running a Java Application
Debugging a Java Application
Shortcut Key Sequences
More Shortcut Key Sequences
Setting the Classpath
Importing Existing Java Code into Eclipse
What makes this material hard to master
For developers coming from COBOL or Visual Basic, the difficulty is less the syntax than a change in how programs are organized. The syllabus builds in a deliberate order.
- C-family syntax first. Operators and expressions get their own block: increment and decrement, operate-assign (
+=), the conditional operator, precedence, implicit conversions and the cast operator. Control flow follows, including the enhancedforloop,breakandcontinue. - Primitives versus objects. Primitive and non-primitive datatypes,
String, arrays and the dot operator come early. Later topics on parameter passing, comparing and identifying objects, wrapper classes and autoboxing depend on them. A common misconception is that==compares object contents. Another is that passing an object lets a method replace the caller's variable. - Object-oriented design. Encapsulation, access control, inheritance, polymorphism,
superand theObjectclass are covered twice, first as concepts and then in Java. Procedural habits show up here, for example in the topic "So, Why All the static?" - Contracts. Abstract classes, interfaces,
Comparable, generics and enumerated types cover the choice between inheriting behavior and promising it. The syllabus also covers enumerated types as they were written before Java 5.0, which helps with reading older code. - Failure and data handling. Exception topics include catching,
finally, declared exceptions, custom exceptions, the difference between errors andRuntimeExceptions, and assertions. I/O streams cover bytes versus characters and reading and writing objects. The Set, List, Queue and Map interfaces and their implementation classes close the core material.
The course targets Java SE 7 and earlier, which Oracle's lifecycle information lists as out of support. It suits organizations that build, maintain or migrate existing systems on those releases.
Who it suits and what comes next
This is a four-day introductory course for professional programmers whose experience is in a high-level language such as COBOL or Visual Basic. No C, C++ or C# background is assumed. It fits a team moving from procedural or event-driven code to Java, or one that has inherited an existing Java codebase.
The appendices on threads, J2EE and Eclipse are for further study. Because the J2EE appendix is an overview of servlets, JSPs, web services and Enterprise JavaBeans, developers heading into web work can continue with Fast Track to Java EE 5 with Servlets, JSP & JDBC. For developers who already have the fundamentals, Advanced Java Language Topics is a one-day advanced follow-up.
Java SE 25 is a supported LTS release according to the lifecycle information HSG tracks. Organizations whose code runs on newer releases can start from Fast Track to Java 25 and OO Development. They can also ask for private training tailored to the versions they use through a training proposal.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Maintaining an inherited application. A team of COBOL developers might take over an existing Java service. Inheritance,
Objectmethods such astoString, packages,CLASSPATHand theimportstatement explain how the code is organized and where a class is resolved from. - File-based processing. A team might replace a batch-style file job. The
Fileobject, byte and character streams, filtered streams,PrintWriterandfinallyblocks cover reading, writing and cleaning up when a record or file fails. - A small domain model. A team might model orders or accounts with enumerated types, an interface for shared behavior and
Comparablefor ordering. They might store the results in genericListandMapcollections, which brings together the object-oriented and collections topics.
AI coding assistants and these topics
AI coding assistants are useful for beginner-level Java. They can draft a class with fields, constructors and accessors, explain a compiler error, or suggest which collection interface fits a task. They help most once you can read what they produce.
They fail in predictable places:
- Version drift. Assistants often produce syntax from newer Java releases that will not compile on Java SE 7 or earlier. Compile with the JDK the project actually targets.
- Equality and ordering. Generated classes may use
==on strings or objects, or implementComparableinconsistently. Test comparison logic with explicit cases. - Exceptions. Look for empty
catchblocks, broad catches that hide failures, and resources not released infinally. - Streams and encoding. Code that mixes byte and character streams may rely on a default character set. Check it against real input files.
- Object serialization. Reading objects from untrusted input is a security risk, so review any generated code that does it.
- Threads. Generated threaded code can look correct and still have race conditions. Review coordination logic by hand.
To verify, compile and run on the target JDK, write small tests for edge cases, and walk through the code in a debugger. The Eclipse appendix covers debugging.
Frequently asked questions
What level is this course?
It is introductory and runs four days. It is written for programmers who are new to Java and to C-family syntax, and it builds from datatypes and operators up to inheritance, interfaces, generics, exceptions, I/O streams and collections.
What do I need to know beforehand?
Professional programming experience in a high-level language, such as COBOL or Visual Basic. No experience in C, C++ or C# is assumed.
Are threads, J2EE and Eclipse covered in depth?
They are provided as appendices for further study: an introduction to threads, an overview of J2EE, and an introduction to using Eclipse. The main body of the course covers the language, object-oriented principles, I/O streams and the core collection classes.
Can this course be delivered privately for our team?
Yes. HSG delivers private training for organizations, onsite at the client's location or live online.
Can the content be tailored to the Java version we use?
Private training can be customized, including to the Java versions an organization uses, such as newer releases. Send the details through a training proposal request.
Training locations
Introduction to Java for Non-C Programmers training across the U.S. and beyond.
We provide private Introduction to Java for Non-C Programmers training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Introduction to Java for Non-C Programmers training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.