Whether you want to learn Java to write customized applets to embed in your web pages or large-scale applications, this 5 day course is for you. It has been used by thousands of beginning and experienced programmers to master the Java skills that are essential, whether you’re creating desktop, web, or mobile applications. Now revised to cover Java SE 17 and updated throughout, it focuses on today’s best practices, covers both NetBeans and Eclipse, and makes it easier than ever to learn Java, even if you’ve never programmed in any language before.
This course: Covers the main terms and concepts that are essential to programming in Java; Explains what the language elements do and how you can effectively apply them in practice; Provides an extensive introduction to the key packages in the Java class library illustrated with full working examples; Walks you through building a robust application to give you a better understanding of how to apply Java in practical projects.
This course is for anyone who wants to learn the essentials of Java programming. It works:
Section 1: Essential concepts and skills
Chapter 1: An introduction to Java
• An overview of Java
• Types of Java applications
• An introduction to Java development
• How to get started with NetBeans
• How to get started with Eclipse
Chapter 2: How to write your first applications
• Basic coding skills
• How to work with numeric variables
• How to work with string variables
• How to use classes, objects, and methods
• How to use the console for input and output
• How to code simple control statements
• Two illustrative applications
• Two more skills for the road
Chapter 3: How to work with the primitive data types
• Basic skills for working with data
• How to code arithmetic expressions
• More skills for working with numbers
Chapter 4: How to code control statements
• How to code Boolean expressions
• How to work with if/else statements
• How to work with switch statements and expressions
• How to work with loops
• How to code break and continue statements
Chapter 5: How to code methods and handle exceptions
• How to code and call static methods
• How to handle exceptions
• How to validate data
• The Future Value application with data validation
Chapter 6: How to test and debug an application
• Basic skills for testing and debugging
• How to use NetBeans to debug an application
• How to use Eclipse to debug an application
Chapter 7: How to code classes
• An introduction to classes and objects
• How to code a class that defines an object
• How to work with static fields and methods
• The Product Viewer application
• More skills for working with objects and methods
• The Line Item application
Chapter 8: How to work with arrays and array lists
• How to work with an array
• How to use the Arrays class
• How to work with an array list
• The Invoice application
Chapter 9: How to work with file I/O and exceptions
• Introduction to file I/O
• How to work with text files
• The Product Manager application
• How exceptions work
• More skills for working with exceptions
Section 2: Object-oriented programming
Chapter 10: How to work with inheritance
• An introduction to inheritance
• Basic skills for working with inheritance
• The Product application
• More skills for working with inheritance
• How to work with abstract, final, and sealed classes
• How to work with records
• Inheritance vs composition
Chapter 11: More skills for object-oriented programming
• An introduction to interfaces
• How to work with interfaces
• How to work with enumerations
• How to work with packages and libraries
• How to work with modules
• How to use javadoc to document a package
Section 3: GUI programming
Chapter 12: How to get started with JavaFX
• An introduction to GUI programming
• How to start a JavaFX project
• How to create a GUI that accepts user input
• How to create a GUI that handles events
• How to validate user input
Chapter 13: More skills for working with JavaFX
• Seven more JavaFX controls
• The Social Media Signup application
Section 4: More concepts and skills
Chapter 14: More skills for working with strings
• How to work with the String class
• The Create Account application
• More skills for working with strings
• The Hangman application
• How to work with the StringBuilder class
Chapter 15: More skills for working with collections
• An introduction to collections
• How to work with a linked list
• How to sort the items in a collection
• How to work with stacks and queues
• How to work with maps
Chapter 16: How to work with lambda expressions and streams
• How to work with lambda expressions
• How to use functional interfaces from the Java API
• How to work with streams
Chapter 17: How to work with recursion and algorithms
• An introduction to recursion
• Common recursive algorithms
• The Directory Search application
Chapter 18: How to work with dates and times
• An introduction to date/time APIs
• How to use the new date/time API
Chapter 19: How to work with a database
• How a relational database is organized
• How to use SQL to work with a database
• How to use DB Browser for SQLite
• An introduction to database drivers
• How to use JDBC to work with a database
• A class for working with a database
Appendices
Appendix A: How to set up Windows for this book
Appendix B: How to set up macOS for this book