Java Fundamentals : a Fast-Paced and Pragmatic Introduction to One of the World's Most Popular Programming Languages /
As a practical hands-on guide, Java Fundamentals progressively imparts you with the skills you need to efficiently write programs in Java. After a quick introduction to the principles of Java, you'll move on to learn all about data types, data structures, and control. You'll also understan...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | , , , |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
[2019]
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Intro; Preface; Introduction to Java; Introduction; The Java Ecosystem; Our First Java Application; Syntax of a Simple Java Program; Exercise 1: A Simple Hello World Program; Exercise 2: A Simple Program for Performing Simple Mathematic Operations; Exercise 3: Displaying Non-ASCII Characters; Activity 1: Printing the Results of Simple Arithmetic Operations; Getting Input from the User; Exercise 4: Reading Values from the User and Performing Operations; Packages; Rules to Follow When Using Packages; Activity 2: Reading Values from the User and Performing Operations Using the Scanner Class
- Activity 3: Calculating the Percent Increase or Decrease of Financial InstrumentsSummary; Variables, Data Types, and Operators; Introduction; Variables and Data Types; Variables; Reserved Keywords; Integral Data Types; int Data Type; long Data Type; Type Casting; Exercise 5: Type Casting; byte Data Type; short Data Type; Boolean Data Type; char Data Type; Floating-Point Data Types; float Data Type; double Data Type; Activity 4: Inputting Student Information and Outputting an ID; Activity 5: Calculating the Number of Full Fruit Boxes; Summary; Control Flow; Introduction; Conditional Statements
- The if StatementThe else Statement; Exercise 6: Implementing a Simple if-else Statement; The else-if Statement; Exercise 7: Implementing the else-if Statements; Nested if Statements; switch case Statements; Activity 6: Controlling the Flow of Execution Using Conditionals; Activity 7: Developing a Temperature System; Looping Constructs; for Loops; Exercise 8: Implementing a Simple for Loop; Activity 8: Implementing the for Loop; Nested for Loops; Exercise 9: Implementing a Nested for Loop; for-each Loops; The while and do while Loops; Exercise 10: Implementing the while Loop
- Activity 9: Implementing the while LoopActivity 10: Implementing Looping Constructs; Activity 11: Continuous Peach Shipment with Nested Loops.; Summary; Object-Oriented Programming; Introduction; Object-Oriented Principles; Classes and Objects; Object-Oriented Programming; Naming Conventions for Class Names; Exercise 11: Working with Classes and Objects; Exercise 12: Using the Person Class; Constructors; The this Keyword; Activity 12: Creating a Simple Class in Java; Activity 13: Writing a Calculator Class; Inheritance; Types of Inheritance; Importance of Inheritance in OOP
- Implementing Inheritance in JavaActivity 14: Creating a Calculator Using Inheritance; Overloading; Constructor Overloading; Polymorphism and Overriding; The Difference between Overriding and Overloading; Annotations; Creating Your Own Annotation Types; References; Activity 15: Understanding Inheritance and Polymorphism in Java; Summary; OOP in Depth; Introduction; Interfaces; Use Case: Listeners; Exercise 13: Implementing Interfaces; Activity 16: Creating and Implementing Interfaces in Java; Typecasting; Activity 17: Using instanceof and Typecasting; The Object Class; Autoboxing and Unboxing