Java for Developers Pocket Primer
- Length: 228 pages
- Edition: 1
- Language: English
- Publisher: Mercury Learning and Information
- Publication Date: 2022-10-24
- ISBN-10: 1683925491
- ISBN-13: 9781683925491
- Sales Rank: #0 (See Top 100 Books)
As part of the best-selling Pocket Primer series, this book is designed to provide a thorough introduction to Java development for people who are relatively new to the Java programming language. It is intended to be a fast-paced introduction to the coreconcepts of Java and Java APIs, illustrated with code samples using primarily Java 8. Companion files with source code are available.
FEATURES:
- Covers Boolean logic, loops, arrays, recursion, OOP concepts, data structures,streams, SQL, and more
- Lists new features in Java 9 through Java 13
- Features numerous code samples throughout
- Includes companion files with source code
Cover Title Page Copyright Dedication Contents Preface Chapter 1: Introduction to Java A Very Brief Introduction to Java Java Release Dates Downloading a Java Release (Short Version) Selecting a Version of Java (detailed version) Java 8 and Java 11 Java Version Numbers JRE Versus a JDK Java Distributions Java IDEs Java Data Types, Operators, and their Precedence Java Comments Java Operators Precedence of Java Operators Creating and Compiling Java Classes A “Hello World” Example Working with Numbers Working with Other Bases Working with Random Numbers Working with Built-in Math Functions Working with Built-in Trigonometric Functions Working with Bitwise Operators The Java String Class Characters, Arrays, and Strings in Java Java Strings with Metacharacters The Java new Operator Equality of Strings Comparing Strings Searching for a Substring in Java Useful String Methods in Java Parsing Strings in Java Overriding the Java toString() Method (Optional) Autoboxing and Unboxing (Optional) Summary Chapter 2: Boolean Logic, Unicode, User Input Conditional Logic in Java Working with Boolean Expressions Working with Dates The Current Date and Time Date Comparison Date Formatting with SimpleDateFormat Parsing Strings as Dates Working with Unicode, i18n, and i10n Working with Base64 Working with Exceptions in Java Checked Exceptions Unchecked Exceptions The throws Keyword The Throwable Class Getting User Input and Handling Exceptions Parsing User Input and Handling Exceptions Nested Exceptions A try/catch/finally Example Summary Chapter 3: Methods and Constructors What is a Java Class? Public, Private, or Protected? The Scope of Java Variables Static Methods Other Static Types What are Accessors and Mutators? A Java Class Without Accessors Refactoring Code with Accessor Methods Defining a Constructor and an Accessor Accessors, Mutators, and the this Keyword Arrays of Classes Static Methods Static Code Blocks A Second “Hello World” Example A Third “Hello World” Example A Fourth “Hello World” Example A Fifth “Hello World” Example Java Anonymous Inner Classes Java Named Inner Classes Anonymous Classes Versus Named Inner Classes Limitations of Anonymous Classes Private Constructors (Why?) The Java import Statement The Java package Statement An Example of the package Statement (1) An Example of the package Statement (2) Creating Java JAR Files for Java Class Files Summary Chapter 4: Loops, Arrays, and Recursion Working with for Loops Determining Leap Years Java for Loops with Integers Checking for Palindromes Nested Loops Goldbach’s Conjecture Variations of a Basic for Loop Working with while Loops Finding the Divisors of a Number Working with do-while Loops Working with a Java switch Statement Java Arrays Working with Arrays of Numbers The Bubble Sort Algorithm Java Multi-Dimensional Arrays Java Multi-Dimensional Arrays (2) Working with Characters and Strings Working with Arrays of Strings Displaying Command Line Arguments Randomly Accessing Arrays of Strings The StringBuilder and StringBuffer Classes Java Example with StringBuilder and StringBuffer Classes What is Recursion? Adding Integers Powers of Two Factorial Values Fibonacci Numbers Calculating Factorial Values Calculating the GCD of Two Numbers Counting Digits in Integers Adding Digits in Integers Reverse a String via Recursion Summary Chapter 5: Introduction to OOP Java Constructors Overloading Java Methods Public, Protected, and Private Keywords Identity and Equality are Different Concepts A Quick Introduction to Inheritance The final Modifier with Java Methods and Classes Working with Value Objects in Java An Example of a Value Object in Java What is a Java Interface? Extending Interfaces Java Interfaces and Abstract Classes A Java Class That Implements an Interface Java Abstract Methods and Classes An Abstract Class in Java Are Subclasses Always Concrete Classes in Java? Method Arguments and Interfaces What is OOP? Inheritance The Java Object Class Inheritance and Overriding Methods Encapsulation Polymorphism Summary Chapter 6: Data Structures Java Legacy Data Structures Iterators What is an Iterator? Active versus Passive Enumeration: Oldest Style Iteration Iterator: Second Style Iteration Generics: Third Style Iteration forEach: Fourth Style Iteration Streams: Fifth Style Iteration The Collection Interfaces The Collection Classes Overview of Java Collections Iterating over Wrapper-Synchronized Collections Convenience Implementations List View of an Array Immutable Multiple-Copy List The ArrayList Class The HashMap Class The HashSet Class The LinkedList Class The Queue Class The TreeSet Class The Collections Class Linked Lists of Objects Generic Methods Generic Classes Counting Distinct Characters Java 8 Enhancements for Collections Summary Chapter 7: Streams and Files Working with Streams in Java The Abstract Class InputStream The FileInputStream Class The FilterInputStream Class The BufferedInputStream Class Reading User Input from the Console Reading Line-Oriented User Input Reading Character-Oriented User Input Reading a Text File Reading a CSV File Writing Data to a Text File The FileWriter Class The PrintWriter Class The PrintStream Class Counting Words and Characters in a File Search for a String in a File The BufferedWriter Class The BufferedWriter Class with try-with-resources (Java 7+) Working with Directories Serialization Deserialization Reflection Annotations Summary Chapter 8: Java and SQL What is SQL? What is DCL? What is DDL? Delete vs. Drop vs. Truncate What is DQL? What is DML? What is TCL? Working with MySQL Logging into MySQL Creating a MySQL Database Creating and Dropping Tables Manually Creating MySQL Tables Working with Simple SELECT Statements The EXISTS Keyword The LIMIT Keyword DELETE, TRUNCATE, and DROP in SQL More Options for the DELETE Statement in SQL What is a SQL Index? Types of Indexes Creating an Index Overhead of Indexes Considerations for Defining Indexes Connecting to MySQL in Java Drop and Recreate a MySQL Table Insert Data into a MySQL Table Select Data from a MySQL Table Next Steps Java Threads and Sockets Java Networking Reflection, GC, and Classloaders Summary Index
Donate to keep this site alive
To access the Link, solve the captcha.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.