FirstCity
Welcome to First City University College Library iPortal | library@firstcity.edu.my | +603-7735 2088 (Ext. 519)
Amazon cover image
Image from Amazon.com

Learn Java with Projects: A concise practical guide to learning everything a Java professional really needs to know

By: Contributor(s): Material type: TextTextPublisher: [Place of publication not identified] : Packt Publishing, 2023Edition: [First edition]Description: xxiii, 573 pages : illustrationsContent type:
  • text
Media type:
  • unmediated
Carrier type:
  • volume
ISBN:
  • 9781837637188
Subject(s): DDC classification:
  • 005.13/3 KEN 2023 23/eng/20231205
LOC classification:
  • QA76.73.J38
Contents:
Cover -- Title Page -- Copyright and Credits -- Contributors -- Table of Contents -- Preface -- Part 1: Java Fundamentals -- Chapter 1: Getting Started with Java -- Technical requirements -- Exploring Java features -- OOP in Java -- Working with OOP -- Compiled language -- Write once, run anywhere -- Automatic memory management -- Installing Java -- Checking whether Java is installed on your system -- Installing Java on Windows -- Installing Java on macOS -- Installing Java on Linux -- Running Java online -- Writing our first program -- Hello world -- Steps to create the program
Understanding the program -- Compiling and running Java programs -- Understanding the compilation process -- Compiling the code with javac on the command line -- Running the compiled code with Java on the command line -- Working with an IDE -- What is an IDE? -- Choosing an IDE -- Creating and running a program with an IDE -- Creating a program in an IDE -- Running your program -- Debugging a program -- Exercises -- Project -- Summary -- Chapter 2: Variables and Primitive Data Types -- Technical requirements -- Understanding and declaring variables -- What is a variable? -- Declaring a variable
Naming a variable -- Accessing a variable -- Accessing a variable that you have not declared -- Understanding Java's primitive data types -- Java's primitive data types -- Screen output -- Exercises -- Project -- dinosaur profile generator -- Summary -- Chapter 3: Operators and Casting -- Technical requirements -- Learning how Java's operators cooperate -- Order of precedence -- Associativity -- Understanding Java's operators -- Unary operators -- Arithmetic operators -- Relational operators -- Logical operators -- Bitwise operators -- Ternary operator -- Compound assignment operators
Explaining Java casting -- Widening -- Narrowing -- Exercises -- Project -- Dino meal planner -- Summary -- Chapter 4: Conditional Statements -- Technical requirements -- Understanding scope -- What is a block? -- Exploring if statements -- The if statement itself -- else if statements -- else statements -- Mastering switch statements and expressions -- switch statements -- switch expressions -- Exercises -- Project -- Task allocation system -- Summary -- Chapter 5: Understanding Iteration -- Technical requirements -- while loops -- do-while loops -- while versus do-while -- for loops
Traditional for loop -- Enhanced for loop -- Nested loops -- break and continue statements -- break statements -- continue statements -- Exercises -- Project -- Dino meal planner -- Summary -- Chapter 6: Working with Arrays -- Technical requirements -- Arrays -- what, when, and why? -- Arrays explained -- When to use arrays -- Declaring and initializing arrays -- Declaring arrays -- Initializing arrays -- Short syntax for array initialization -- Accessing elements in an array -- Understanding indexing -- Accessing array elements -- Modifying array elements -- Working with length and bounds
Summary: Learn Java with Projects stands out in the world of Java guides; while some books skim the surface and others get lost in too much detail, this one finds a nice middle ground. You’ll begin by exploring the fundamentals of Java, from its primitive data types through to loops and arrays. Next, you’ll move on to object-oriented programming (OOP), where you’ll get to grips with key topics such as classes, objects, encapsulation, inheritance, polymorphism, interfaces, and more. The chapters are designed in a way that focuses on topics that really matter in real-life work situations. No extra fluff here, so that you get more time to spend on the basics and form a solid foundation. As you make progress, you’ll learn advanced topics including generics, collections, lambda expressions, streams and concurrency. This book doesn't just talk about theory—it shows you how things work with little projects, which eventually add up to one big project that brings it all together. By the end of this Java book, you’ll have sound practical knowledge of Java and a helpful guide to walk you through the important parts of Java
List(s) this item appears in: New Book 2025
Star ratings
    Average rating: 0.0 (0 votes)
Holdings
Item type Current library Home library Collection Shelving location Call number Status Date due Barcode Item holds
Open Collection Open Collection FIRST CITY UNIVERSITY COLLEGE FIRST CITY UNIVERSITY COLLEGE Open Collection FCUC Library 005.133 KEN 2023 (Browse shelf(Opens below)) Available 00025300
Total holds: 0

Includes index

Cover -- Title Page -- Copyright and Credits -- Contributors -- Table of Contents -- Preface -- Part 1: Java Fundamentals -- Chapter 1: Getting Started with Java -- Technical requirements -- Exploring Java features -- OOP in Java -- Working with OOP -- Compiled language -- Write once, run anywhere -- Automatic memory management -- Installing Java -- Checking whether Java is installed on your system -- Installing Java on Windows -- Installing Java on macOS -- Installing Java on Linux -- Running Java online -- Writing our first program -- Hello world -- Steps to create the program

Understanding the program -- Compiling and running Java programs -- Understanding the compilation process -- Compiling the code with javac on the command line -- Running the compiled code with Java on the command line -- Working with an IDE -- What is an IDE? -- Choosing an IDE -- Creating and running a program with an IDE -- Creating a program in an IDE -- Running your program -- Debugging a program -- Exercises -- Project -- Summary -- Chapter 2: Variables and Primitive Data Types -- Technical requirements -- Understanding and declaring variables -- What is a variable? -- Declaring a variable

Naming a variable -- Accessing a variable -- Accessing a variable that you have not declared -- Understanding Java's primitive data types -- Java's primitive data types -- Screen output -- Exercises -- Project -- dinosaur profile generator -- Summary -- Chapter 3: Operators and Casting -- Technical requirements -- Learning how Java's operators cooperate -- Order of precedence -- Associativity -- Understanding Java's operators -- Unary operators -- Arithmetic operators -- Relational operators -- Logical operators -- Bitwise operators -- Ternary operator -- Compound assignment operators

Explaining Java casting -- Widening -- Narrowing -- Exercises -- Project -- Dino meal planner -- Summary -- Chapter 4: Conditional Statements -- Technical requirements -- Understanding scope -- What is a block? -- Exploring if statements -- The if statement itself -- else if statements -- else statements -- Mastering switch statements and expressions -- switch statements -- switch expressions -- Exercises -- Project -- Task allocation system -- Summary -- Chapter 5: Understanding Iteration -- Technical requirements -- while loops -- do-while loops -- while versus do-while -- for loops

Traditional for loop -- Enhanced for loop -- Nested loops -- break and continue statements -- break statements -- continue statements -- Exercises -- Project -- Dino meal planner -- Summary -- Chapter 6: Working with Arrays -- Technical requirements -- Arrays -- what, when, and why? -- Arrays explained -- When to use arrays -- Declaring and initializing arrays -- Declaring arrays -- Initializing arrays -- Short syntax for array initialization -- Accessing elements in an array -- Understanding indexing -- Accessing array elements -- Modifying array elements -- Working with length and bounds

Available to OhioLINK libraries

Learn Java with Projects stands out in the world of Java guides; while some books skim the surface and others get lost in too much detail, this one finds a nice middle ground. You’ll begin by exploring the fundamentals of Java, from its primitive data types through to loops and arrays. Next, you’ll move on to object-oriented programming (OOP), where you’ll get to grips with key topics such as classes, objects, encapsulation, inheritance, polymorphism, interfaces, and more. The chapters are designed in a way that focuses on topics that really matter in real-life work situations. No extra fluff here, so that you get more time to spend on the basics and form a solid foundation. As you make progress, you’ll learn advanced topics including generics, collections, lambda expressions, streams and concurrency. This book doesn't just talk about theory—it shows you how things work with little projects, which eventually add up to one big project that brings it all together. By the end of this Java book, you’ll have sound practical knowledge of Java and a helpful guide to walk you through the important parts of Java