
Java Fundamentals
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
All prices
More details
Other editions
Additional editions

Content
- 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 Instruments
- Summary
- 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 Statement
- The 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 Loop
- Activity 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 Java
- Activity 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
- Activity 18: Understanding Typecasting in Java
- Abstract Classes and Methods
- Activity 19: Implementing Abstract Classes and Methods in Java
- Activity 20: Use abstract class to Encapsulate Common Logic
- Summary
- Data Structures, Arrays, and Strings
- Introduction
- Data Structures and Algorithms
- Arrays
- Creating and Initializing an Array
- Accessing Elements
- Exercise 14: Creating an Array Using a Loop
- Exercise 15: Searching for a Number in an Array
- Activity 21: Finding the Smallest Number in an Array
- Activity 22: Calculator with Array of Operators
- Two-Dimensional Arrays
- Exercise 16: Printing a Simple Two-Dimensional Array
- Exercise 17: Creating a Three-Dimensional Array
- The Arrays Class in Java
- Insertion sort
- Example
- Exercise 18: Implementing Insertion Sort
- Creating an ArrayList and Adding Elements
- Replacing and Removing Elements
- Exercise 19: Adding, Removing, and Replacing Elements in an Array
- Iterators
- Exercise 20: Iterating through an ArrayList
- Activity 23: Working with ArrayList
- Strings
- Creating a String
- Concatenation
- String Length and Characters
- Activity 24: Input a String and Output Its Length and as an Array
- Activity 25: Calculator Reads from Input
- Conversion
- Comparing Strings and Parts of Strings
- StringBuilder
- Exercise 21: Working with StringBuilder
- Activity 26: Removing Duplicate Characters from a String
- Summary
- The Java Collections Framework and Generics
- Introduction
- Reading Data from Files
- Binary versus Text Files
- CSV Files
- Reading Files in Java
- Exercise 22: Reading a CSV File
- Building a CSV Reader
- Exercise 23: Building a CSV Reader
- Arrays
- Exercise 24: Reading Users from a CSV File into an Array
- Activity 27: Read Users from CSV Using Array with Initial Capacity
- The Java Collections Framework
- Vectors
- Exercise 25: Reading Users from a CSV File into a Vector
- Activity 28: Reading a Real Dataset Using Vector
- Iterating over Collections
- Activity 29: Iterating on a Vector of Users
- Hashtable
- Exercise 26: Writing an Application that Finds a User by Email
- Activity 30: Using a Hashtable to Group Data
- Generics
- What was the Problem?
- How to Use Generics
- Exercise 27: Finding a User by Text in a Name or Email
- Sorting and Comparing
- Comparables and Comparators
- Exercise 28: Creating a Comparator that Compares Strings Alphabetically
- Sorting
- Bubble Sort
- Merge Sort
- Activity 31: Sorting Users
- Data Structures
- Collection
- List
- ArrayList
- LinkedList
- Map
- HashMap
- TreeMap
- LinkedHashMap
- Set
- HashSet
- TreeSet
- LinkedHashSet
- Exercise 29: Using TreeSet to Print Sorted Users
- Queue
- java.util.ArrayDeque
- java.util.PriorityQueue
- Exercise 30: Fake Email Sender
- Properties of Collections
- Summary
- Advanced Data Structures in Java
- Introduction
- Implementing a Custom Linked List
- Disadvantages of ArrayList
- Advantages of Linked List over Arrays
- Exercise 31: Adding Elements to a Linked list
- Activity 32: Creating a Custom Linked List in Java
- Drawbacks of Linked List
- Implementing Binary Search Tree
- Exercise 32: Creating a Binary Search Tree in Java
- Activity 33: Implementing the Methods in the BinarySearchTree Class to Find the Highest and Lowest Value in the BST
- Enumerations
- Exercise 33: Using Enum to Store Directions
- Activity 34: Using an Enum to Hold College Department Details
- Activity 35: Implementing Reverse Lookup
- Set and Uniqueness in Set
- Basic Rules for the equals() and hashCode() Methods
- Adding an Object to a Set
- Exercise 34: Understanding the Behavior of equals() and hashCode()
- Exercise 35: Overriding equals() and hashCode()
- Summary
- Exception Handling
- Introduction
- Motivation behind Exceptions
- Exercise 36: Introducing Exceptions
- An Inevitable Introduction to Exceptions
- Exercise 37: Using an IDE to Generate Exception-Handling Code
- Exceptions versus Error Codes
- Exercise 38: Exceptions Versus Error Codes
- Activity 36: Handling Mistakes in Numeric User Input
- Exception Sources
- Checked Exceptions
- Throwing a Checked Exception
- Exercise 39: Working with catch or Specify
- Unchecked Exceptions
- Exercise 40: Using Methods That Throw Unchecked Exceptions
- Exception Class Hierarchy
- Browsing the Exception Hierarchy
- Throwing Exceptions and Custom Exceptions
- Exercise 41: Throwing an Exception
- Exercise 42: Creating Custom Exception Classes
- Activity 37: Writing Custom Exceptions in Java.
- Exception Mechanics
- How try/catch Works
- Exercise 43: Exception Not Caught Because It Cannot Be Assigned to a Parameter in the catch Block
- Exercise 44: Multiple catch Blocks and Their Order
- Exercise 45: Exception Propagation
- Multiple Exception Types in One Block
- Activity 38: Dealing with Multiple Exceptions in a Block
- What Are We Supposed to Do in a Catch Block?
- Exercise 46: Chained Exceptions
- finally Block and Their Mechanics
- Exercise 47: Leaving a File Open as a Result of an Exception
- Activity 39: Working with Multiple Custom Exceptions
- The try with resource Block
- Exercise 48: try with resources Block
- Best Practices
- Suppressing Exceptions
- Exercise 49: Suppressing Exceptions
- Keeping the User in the Loop
- Exercise 50: Asking the User for Help
- Do Not Throw Unless It Is Expected
- Consider Chaining and Being More Specific When You Let Exceptions Propagate
- Summary
- Appendix
- Index
- _GoBack
- _3o7alnk
- _13ir0opqinym
- _wf1nq2qduwld
- _GoBack
- _j54osgzaehl3
- _GoBack
- _gjdgxs
- _459ljcuv0wi3
- _30j0zll
- _GoBack
- _1fob9te
- _gjdgxs
- _GoBack
- _mekaxt5h6e13
- _1fob9te
- _229bspcs37kg
- _3znysh7
- _bpj1lhm05wzm
- _2et92p0
- _87qm1i3bhwdg
- _tyjcwt
- _yfy1vkty0r4p
- _3dy6vkm
- _o7cnyiyv6ap8
- _1t3h5sf
- _p7qns42ezpi6
- _4d34og8
- _koqv4nm032bx
- _cp40bt4ggk31
- _cz41cpklu712
- _difcd37u96b6
- _5gs9s15n1n0o
- _6zjgsivzmqkj
- _wlm6kh5dnaad
- _y8a0udwwdwhu
- _4giaboqv5p0z
- _4ibsxqdxik56
- _9x0xksra86jc
- _6spaocf4wpd2
- _um7k3il1sf6h
- _gssgy5a11zyx
- _bkeufxfm4kno
- _d5va0yjhrivx
- _6hmadf97os2n
- _3fmjmh9nj105
- _adwve0yasidj
- _z1e7cu5znen3
- _4ej2uvj6o08x
- _1u3d5zfogemh
- _25mxe4nlyyi3
- _suk9edd3p1hg
- _4n7tqnt671aq
- _z1ohdcdiq8j4
- _xezatuqt5okv
- _35u0d7mb63pd
- _1vx0kek0jpbk
- _2s8eyo1
- _cpkh99z7tmkc
- _17dp8vu
- _viewquqihewn
- _877jx4qlqz7o
- _ea5sf16bjkln
- _4qi1eerq4piv
- _tv383x54xj2i
- _z5c0a2zuxfs
- _k54kn0q44lhj
- _ah4gih43xc7p
- _eghfi9kxrvh8
- _jockgcstsi0b
- _dsahum8rzzho
- _g737br7znma5
- _vjnasxsphkj
- _e880ocep4jr7
- _nu3717ousq6m
- _vqfribm1rhva
- _abmjtbmtwozz
- _vwxtyvqr8qkd
- _gq2vmpq3iayj
- _5w4vtd7ac199
- _8pazkjgh07a
- _1c83gb8b5dtt
- _arlm68r03brf
- _ogi3lsqgoc37
- _1l7xtmrg6mxb
- _wgjffcwbiurf
- _5ntnu4i346kw
- _3sjv54onmib2
- _3rdcrjn
- _2fnwdr8kwou7
- _5ne3fnu2st1s
- _26in1rg
- _7hv7urt5kzy1
- _lnxbz9
- _d4dob04jk9j
- _35nkun2
- _a8p1x8u4zle0
- _d06y0suxfv7q
- _1ksv4uv
- _2ko41uj59yxw
- _44sinio
- _7tihcyx9w1wa
- _2jxsxqh
- _xhuplxp8memf
- _z337ya
- _ehr1svn1a1c6
- _46p5n6ldx3v5
- _3j2qqm3
- _1y810tw
- _xbputrhda3q3
- _4i7ojhp
- _wjsfbsw7gcqo
- _2xcytpi
- _fqjw7qblzqsx
- _1ci93xb
- _3whwml4
- _8dlnve26670z
- _2bn6wsx
- _ibf6am6udyvr
- _qsh70q
- _9a2p477ddqpg
- _3as4poj
- _ucasi43gdb9n
- _1pxezwc
- _77nf312ohgkx
- _49x2ik5
- _q36hp5iuybjp
- _2p2csry
- _lh7ysl1887o2
- _147n2zr
- _82p2vvhzlcyd
- _3o7alnk
- _gcqstkhn0e0q
- _ihv636
- _73o7i0gimy3d
- _32hioqz
- _70xfe3nka2i0
- _3fwokq0
- _g2x68x4kj4sw
- _4f1mdlm
- _arj08maq55ya
- _2u6wntf
- _mw09crlx4fwo
- _19c6y18
- _kura0sefy1h6
- _3tbugp1
- _apxlv5x7e34g
- _GoBack
- _lu7xc17mwtu8
- _GoBack
- _rxyrst3a6nje
- _oim9blnftrtv
- _i7yj41s8m5f1
- _nfv6q4sqsrfl
- _eagtfjg8z7s2
- _wvpd3hsmw4ov
- _j0mti3umojlk
- _qrbfoc7pkmo6
- _4ubs102pw7o6
- _hkj5ioptcpig
- _tii64ezfakug
- _z0m0bee8k9mp
- _60s8cbcxicjk
- _7110sgwdmmkr
- _1h5ekp16ougg
- _j2h5igft5fot
- _kps95cn4m7om
- _pvhf928pq02l
- _8opvlxwbdyc7
- _4vzksq90uyyd
- _a2kafpjpic1k
- _GoBack
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.