Learn Java with projects a concise practical guide to learning everything a Java professional really needs to know

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...

Descripción completa

Detalles Bibliográficos
Otros Autores: Kennedy, Seán, author (author), Putten, Maaike van, author
Formato: Libro electrónico
Idioma:Inglés
Publicado: [Place of publication not identified] : Packt Publishing 2023.
Edición:[First edition]
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009804922206719
Tabla de Contenidos:
  • 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