Limit search to available items
Book Cover
Author Alankus, Gazihan

Title Java Fundamentals A Fast-Paced and Pragmatic Introduction to One of the World's Most Popular Programming Languages
Published Birmingham : Packt Publishing Ltd, 2019
Online access available from:
    View Resource Record  


Description 1 online resource (408 p.)
Contents 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
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
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
Summary 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 understand object-oriented programming in depth, with emphasis ..
Notes Activity 18: Understanding Typecasting in Java
Description based upon print version of record
Subject Java (Computer program language)
Form Electronic book
Author Fazal, Basheer Ahamed
Isola, Vinicius
Obare, Miles
Theodoro de Brito, Rogério
ISBN 1789802954