As one of the most popular languages for building web applications, Java is often the first language that programmers learn to use. This self-paced course with extensive videos and a detailed eBook is an ideal introduction to the world of programming with Java. With it and the Java Development Kit, you can compile your first program. Assuming little or no programming experience, the easy-to-follow lessons are reinforced by step-by-step video instructions that demonstrate how to execute each task, allowing you to master Java programming quickly and seamlessly.
Visit www.wrox.com and www.wiley.com
In this lesson you are introduced to some of the very basic Java terms, and you will download and install the Java Development Kit (JDK) and compile your first program. All but two of the lessons in this course include video based training. This lesson and the final lesson on Java technical job interviews are the two exceptions that are completely based on short readings.
Professional programmers use an Integrated Development Environment (IDE), which includes an editor, a compiler, type-ahead help, a debugger, and a lot more. Eclipse is a free and open-source IDE is by far the most widely used Java IDE, and I’ll be using it for compiling and running most of the examples in this course. In this lesson you'll visit www.eclipse.org/downloads to download an Eclipse IDE for your operating system and get familiar with the part of this popular tool.
In addition to the Eclipse IDE, you'll also want to have a copy of the sample files for many of the lesson with those course. The free download of the samples is at http://www.wrox.com/WileyCDA/WroxTitle/Java-Programming-24-Hour-Trainer.productCd-0470889640,descCd-DOWNLOAD.html
Starting from this lesson you’ll be studying various elements of the Java language with brief descriptions to get you started programming in the shortest possible time. This lesson introduces fundamentals including classes, objects, variables, and constants. In the Try-It you will write a tax calculator.
Methods contain code for actions or functions a class can perform. In this lesson you’ll learn how to declare and call them. In the Try-It you'll modify the tax calculator to handle a dollar to euro currency conversion.
This lesson steps through more essential Java language building blocks including arrays, loops, and the important beginnings of debugging. In the Try It, you will practice adding command line arguments.
In this lesson you'll learn how Java packages help you organize and control access to classes, encapsulate and interface with classes, and in the Try It, you will use these concepts to create a pay program that implements pay increases different for employees and contractors.
In this lesson you will build a complete application that illustrates how to design and implement programs with abstract classes and interfaces. You also learn about polymorphism.
The Java Swing library is introduced in this lesson and used to create an application with a graphic user interface (as opposed to a text or command line user interface). In the Try It you will build a new calculator interface with Swing.
When a user interacts with a GUI program (such as by clicking a button or pressing a key) a Java Swing program receives an event that can initiate an appropriate reaction. In this lesson you’ll learn how to code event handlers in Java GUI programs.
An applet is a way to incorporate downloadable GUI applications into web pages. In this lesson you’ll learn the basics of applet creation and the applet’s life cycle. In the Try-It you'll turn your calculator application into an applet.
This lesson uses the game of tic-tac-toe to teach you how to implement an algorithm in a Java swing applet. In the Try It, you'll modify the game to play human player versus computer.
This lessons uses a ping-pong game to teach you more about drawing objects and processing key-press events. In the Try It you will practice re-factoring to split the code into separate packages according to its function.
No matter how good you get with Java programming, most programs will still have the potential for run-time errors. You may not be able to prevent these errors so it is important than you know how to make your programs handle them. Error processing in the Java world is called exception handling and is the subject of this lesson.
Java collection classes enable the storing of handles of related data in one place. In this lesson you'll learn about collection interfaces from java.util, the classes Hashtable and HashMap, enumerations, and iterator.
This lesson introduces generics which enable you to use parameterized data types — you can declare an object, collection, or method without specifying a concrete data type, shifting the definition of concrete types to the code that will be using these objects, collections, or methods.
When Java works with data we refer to the streams of data. In this lesson you'll learn about opening a stream to a data source, reading or writing data from or to the stream, and closing the stream. In the Try It you'll write a program that will open a .zip archive and read the list of files.
In the previous lesson you learned about streams that deal with single bytes, characters, Java primitives, and text. Now you’ll see why and how to write objects into streams, or how to serialize and deserialize Java objects.
Multiple Java technologies exist for providing data exchange among computers in a network. Java provides classes for network programming in the package java.net. This lesson shows you how to read data from the Internet using the class URL as well as direct socket-to-socket programming.
Applications often need to send emails, such as sending a user an email with a reminder or reset for a forgotten password. This lesson will show you how to send and retrieve emails with Java.
One of the most powerful features of Java is its ability to do more than one thing at a time. Programmers call this doing things in parallel or running multiple threads of execution.
This lesson delves deeper into multi-threaded applications and how to control threads that all need to complete before the program moves on. You'll look at multi-threading introduced by the Java GUI and in the Try It, you'll write text to two text areas simultaneously.
Most business applications need to store, read, and manipulate data in a database. This lesson will show you how to work with the JavaDB which is included in your JDK installation. You'll learn about database queries and how to work with database transactions in case updates need to be rolled back. In the Try It you will create and populate a database that your code will read and display.
In this lesson you’ll learn how to work with the JTable Swing control that is an advanced and popular UI component for enterprise applications that you use to present data in a grid with rows and columns. In the Try It you will present data from a database using JTable.
Java allows you to declare your own custom annotations and define your own processing rules that will route the execution of your program and produce configuration files, additional code, deployment descriptors, and more. No matter what your goals, when you create annotations you also need to create or use an annotation processor to get the expected output. Reflection enables you to find out about the internals of a Java class (its methods, constructors, and fields) during the run time, and to invoke the discovered methods or access public member variables.
Remote Method Invocation (RMI) is one of the ways to create Java distributed applications that run on more than one JVM. You might need this for example to provide a centralized server catering to multiple lightweight clients. This lesson will cover defining and implementing remote interfaces, registering remote objects, writing RMI clients, and important security considerations.
Starting from this lesson you’ll be learning about Java Enterprise Edition (Java EE or formerly J2EE), which is a powerful, mature, and widely used platform for development of distributed applications. The word enterprise here doesn't imply that it is only for large-scale applications. Java EE components are used for the development of everything from an application for a local pizza parlor’s website running on a five-hundred-dollar computer to a super-powerful Wall Street trading application that runs on a cluster of hundreds of interconnected servers. You'll learn about the pieces of Java Enterprise Edition, tiers, and containers versus application servers.
A servlet is a Java program written by certain rules and deployed in a Java EE–compliant servlet container of your choice. You'll learn how to write and deploy servlets and in the Try It, you'll write an HTML client that returns a stock quote.
JavaServer Pages (JSP) defines tags that enable you to embed Java code into an HTML page and serves as a way to cleanly separate the code of web designers and web developers. In this lesson you'll learn how to embed Java code in HTML, some key JSP tags, and in the Try It you'll modify the stock quote example to use JSP.
JavaServer Faces (JSF) enforces minimizing Java code in a web page and using it is the best way of developing Java EE web applications. The Try It will modify the stock ticker example again this time using JSF.
Messaging is how applications communicate with each other and in Java this is done with the Java Messaging Service (JMS) API. The the Try It you'll practice sending message to a queue and retrieving them from the queue.
The role of the Java Naming and Directory Interface (JNDI) is to make it easier to find objects in distributed applications. In this lesson you’ll be introduced to the JNDI concepts and will see how to use JNDI for publishing (and looking up) administered JMS objects.
This lesson introduces you to one of the Java EE technologies, Enterprise JavaBeans, which can be used for implementing the business tier in a distributed application.
If an online store allows users to place orders with session beans, there should be a mechanism for saving the data too. Typically, the data is persisted in DBMS. This lesson covers the Java Persistence API (JPA) which defines a standard way of mapping the Java classes to their relational database peers. This process is also known as object-relational mapping (ORM).
REST stands for representational state of transfer and defines a set of constraints that an application must comply to, and web resources that the user may need to work with. In this lesson you'll modify the stock server example using REST.
Over the last several years the Spring Framework has served as an alternative solution for developing enterprise Java applications. It has provided an infrastructure that allows you to easily plug in third-party frameworks and components. The Spring Framework consists of a number of modules that can be categorized as web, core, and data access. And the good part is that they can be used independently as you need them. This lesson will look at the Spring MVC module that was created for the development of web applications. And you'll see how in this model the client connects to a server-side controller object (has no UI code) that performs the routing and processing of the request and for selection of the proper view to be returned to the client.
The Java Persistence API from lesson 33 takes many ideas from Hibernate. This lesson is a step-by-step walkthrough that demonstrates how to write a simple application that will get data from a DBMS using Hibernate.
JavaFX was designed to serve as a tool for creating rich Internet applications (RIAs). This lesson is not an introduction to JavaFX programming, but rather an overview of an application that uses multiple technologies you are already familiar with, plus a client created with JavaFX 1.3.
Technical job interviewing is a game with well-defined rules. I’ve worn the hats of both interviewer and interviewee many times over the last 12 years of my Java career. In this lesson I’ll share with you my views on hiring Java developers and on preparing for technical interviews. There is no video for this lesson, just a reading assignment.
Founded in 1807, John Wiley & Sons, Inc. has been a valued source of information and understanding for more than 200 years, helping people around the world meet their needs and fulfill their aspirations. Wiley and its acquired companies have published the works of more than 450 Nobel laureates in all categories: Literature, Economics, Physiology or Medicine, Physics, Chemistry, and Peace.
Wiley is a global provider of content and content-enabled workflow solutions in areas of scientific, technical, medical, and scholarly research; professional development; and education. Our core businesses produce scientific, technical, medical, and scholarly journals, reference works, books, database services, and advertising; professional books, subscription products, certification and training services and online applications; and education content and services including integrated online teaching and learning resources for undergraduate and graduate students and lifelong learners. Wiley's global headquarters are located in Hoboken, New Jersey, with operations in the U.S., Europe, Asia, Canada, and Australia. The Company is listed on the New York Stock Exchange under the symbols JWa and JWb.