Book description
Your one-stop guide to programming with JavaIf you've always wanted to program with Java but didn't know where to start, this will be the java-stained reference you'll turn to again and again. Fully updated for the JDK 9, this deep reference on the world's most popular programming language is the perfect starting point for building things with Java—and an invaluable ongoing reference as you continue to deepen your knowledge.
Clocking in at over 900 pages, Java All-in-One For Dummies takes the intimidation out of learning Java and offers clear, step-by-step guidance on how to download and install Java tools; work with variables, numbers, expressions, statements, loops, methods, and exceptions; create applets, servlets, and JavaServer pages; handle and organize data; and so much more.
- Focuses on the vital information that enables you to get up and running quickly with Java
- Provides details on the new features of JDK 9
- Shows you how to create simple Swing programs
- Includes design tips on layout, buttons, and labels
Everything you need to know to program with Java is included in this practical, easy-to-use guide!
Table of contents
-
- Cover
- Introduction
- Book 1: Java Basics
-
Book 2: Programming Basics
- Chapter 1: Java Programming Basics
-
Chapter 2: Working with Variables and Data Types
- Declaring Variables
- Initializing Variables
- Using Final Variables (Constants)
- Working with Primitive Data Types
- Working with Strings
- Converting and Casting Numeric Data
- Thinking Inside the Box
- Understanding Scope
- Shadowing Variables
- Printing Data with System.out
- Getting Input with the Scanner Class
- Getting Input with the JOptionPane Class
- Using enum to Create Your Own Data Types
- Chapter 3: Working with Numbers and Expressions
- Chapter 4: Making Choices
- Chapter 5: Going Around in Circles (Or, Using Loops)
- Chapter 6: Pulling a Switcheroo
- Chapter 7: Adding Some Methods to Your Madness
- Chapter 8: Handling Exceptions
-
Book 3: Object-Oriented Programming
- Chapter 1: Understanding Object-Oriented Programming
- Chapter 2: Making Your Own Classes
- Chapter 3: Working with Statics
- Chapter 4: Using Subclasses and Inheritance
- Chapter 5: Using Abstract Classes and Interfaces
- Chapter 6: Using the Object and Class Classes
- Chapter 7: Using Inner Classes, Anonymous Classes, and Lambda Expressions
- Chapter 8: Working with Packages and the New Java Module System
- Book 4: Strings, Arrays, and Collections
-
Book 5: Programming Techniques
- Chapter 1: Programming Threads
- Chapter 2: Using Regular Expressions
- Chapter 3: Using Recursion
-
Chapter 4: Working with Dates and Times
- Pondering How Time is Represented
- Picking the Right Date and Time Class for Your Application
- Using the now Method to Create a Date-Time Object
- Using the parse Method to Create a Date-Time Object
- Using the of Method to Create a Date-Time Object
- Looking Closer at the LocalDate Class
- Extracting Information About a Date
- Comparing Dates
- Calculating with Dates
- Formatting Dates
- Looking at a Fun Birthday Calculator
-
Book 6: JavaFX
-
Chapter 1: Hello, JavaFX!
- Perusing the Possibilities of JavaFX
- Looking at a Simple JavaFX Program
- Importing JavaFX Packages
- Extending the Application Class
- Launching the Application
- Overriding the start Method
- Creating a Button
- Handling an Action Event
- Creating a Layout Pane
- Making a Scene
- Setting the Stage
- Examining the Click Counter Program
- Chapter 2: Handling Events
- Chapter 3: Setting the Stage and Scene Layout
- Chapter 4: Using Layout Panes to Arrange Your Scenes
- Chapter 5: Getting Input from the User
- Chapter 6: Choosing from a List
-
Chapter 1: Hello, JavaFX!
-
Book 7: Web Programming
-
Chapter 1: Using Java Web Start
- Looking at a Simple JavaFX Program
- Understanding Java Web Start
- Creating a JNLP File
- Creating an HTML File to Launch a Java Application
- Uploading the Java Web Start Files to Your Web Server
- Launching the ClickMe Application Using Java Web Start
- Creating an Exception to Allow Java Web Start Applications to Run
- Chapter 2: Creating Servlets
- Chapter 3: Using JavaServer Pages
- Chapter 4: Using JavaBeans
-
Chapter 1: Using Java Web Start
- Book 8: Files and Databases
- About the Author
- Advertisement Page
- Connect with Dummies
- End User License Agreement
Product information
- Title: Java All-in-One For Dummies, 5th Edition
- Author(s):
- Release date: May 2017
- Publisher(s): For Dummies
- ISBN: 9781119247791
You might also like
book
Java All-in-One For Dummies, 6th Edition
Java—from first steps to first apps Knowing Java is a must-have programming skill for any programmer. …
book
Beginning Programming with Java For Dummies, 5th Edition
Learn to speak the Java language like the pros Are you new to programming and have …
book
Java Pocket Guide, 4th Edition
Any time you need quick answers for developing or debugging Java programs, this pocket guide is …
book
Java For Dummies, 8th Edition
Learn to write practical, reusable code with the straightforward tutorials and tips in the newest edition …