The Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified
Book created for educational purposes and is not affiliated with group(s), company(s) nor Stack Overflow. All trademarks belong to their respective company owners
https://goalkicker.com/
Content
1-1
Content list
1-2
About
1-3
Chapter 1: Getting started with Java Language
1-4
Section 1.1: Creating Your First Java Program
1-5
Chapter 2: Type Conversion
1-6
Section 2.1: Numeric primitive casting
1-7
Section 2.2: Basic Numeric Promotion
1-8
Section 2.3: Non-numeric primitive casting
1-9
Section 2.4: Object casting
1-10
Section 2.5: Testing if an object can be cast using instanceof
1-11
Chapter 3: Getters and Setters
1-12
Section 3.1: Using a setter or getter to implement a constraint
1-13
Section 3.2: Why Use Getters and Setters?
1-14
Section 3.3: Adding Getters and Setters
1-15
Chapter 4: Reference Data Types
1-16
Section 4.1: Dereferencing
1-17
Section 4.2: Instantiating a reference type
1-18
Chapter 5: Java Compiler - 'javac'
1-19
Section 5.1: The 'javac' command - getting started
1-20
Section 5.2: Compiling for a dierent version of Java
1-21
Chapter 6: Documenting Java Code
1-22
Section 6.1: Building Javadocs From the Command Line
1-23
Section 6.2: Class Documentation
1-24
Section 6.3: Method Documentation
1-25
Section 6.4: Package Documentation
1-26
Section 6.5: Links
1-27
Section 6.6: Code snippets inside documentation
1-28
Section 6.7: Field Documentation
1-29
Section 6.8: Inline Code Documentation
1-30
Chapter 7: Command line Argument Processing
1-31
Section 7.1: Argument processing using GWT ToolBase
1-32
Section 7.2: Processing arguments by hand
1-33
Chapter 8: The Java Command - 'java' and 'javaw'
1-34
Section 8.1: Entry point classes
1-35
Section 8.2: Troubleshooting the 'java' command
1-36
Section 8.3: Running a Java application with library dependencies
1-37
Section 8.4: Java Options
1-38
Section 8.5: Spaces and other special characters in arguments
1-39
Section 8.6: Running an executable JAR file
1-40
Section 8.7: Running a Java applications via a "main" class
1-41
Chapter 9: Literals
1-42
Section 9.1: Using underscore to improve readability
1-43
Section 9.2: Hexadecimal, Octal and Binary literals
1-44
Section 9.3: Boolean literals
1-45
Section 9.4: String literals
1-46
Section 9.5: The Null literal
1-47
Section 9.6: Escape sequences in literals
1-48
Section 9.7: Character literals
1-49
Section 9.8: Decimal Integer literals
1-50
Section 9.9: Floating-point literals
1-51
Chapter 10: Primitive Data Types
1-52
Section 10.1: The char primitive
1-53
Section 10.2: Primitive Types Cheatsheet
1-54
Section 10.3: The float primitive
1-55
Section 10.4: The int primitive
1-56
Section 10.5: Converting Primitives
1-57
Section 10.6: Memory consumption of primitives vs. boxed primitives
1-58
Section 10.7: The double primitive
1-59
Section 10.8: The long primitive
1-60
Section 10.9: The boolean primitive
1-61
Section 10.10: The byte primitive
1-62
Section 10.11: Negative value representation
1-63
Section 10.12: The short primitive
1-64
Chapter 11: Strings
1-65
Section 11.1: Comparing Strings
1-66
Section 11.2: Changing the case of characters within a String
1-67
Section 11.3: Finding a String Within Another String
1-68
Section 11.4: String pool and heap storage
1-69
Section 11.5: Splitting Strings
1-70
Section 11.6: Joining Strings with a delimiter
1-71
Section 11.7: String concatenation and StringBuilders
1-72
Section 11.8: Substrings
1-73
Section 11.9: Platform independent new line separator
1-74
Section 11.10: Reversing Strings
1-75
Section 11.11: Adding toString() method for custom objects
1-76
Section 11.12: Remove Whitespace from the Beginning and End of a String
1-77
Section 11.13: Case insensitive switch
1-78
Section 11.14: Replacing parts of Strings
1-79
Section 11.15: Getting the length of a String
1-80
Section 11.16: Getting the nth character in a String
1-81
Section 11.17: Counting occurrences of a substring or character in a string
1-82
Chapter 12: StringBuer
1-83
Section 12.1: String Buer class
1-84
Chapter 13: StringBuilder
1-85
Section 13.1: Comparing StringBuer, StringBuilder, Formatter and StringJoiner
1-86
Section 13.2: Repeat a String n times
1-87
Chapter 14: String Tokenizer
1-88
Section 14.1: StringTokenizer Split by space
1-89
Section 14.2: StringTokenizer Split by comma ','
1-90
Chapter 15: Splitting a string into fixed length parts
1-91
Section 15.1: Break a string up into substrings all of a known length
1-92
Section 15.2: Break a string up into substrings all of variable length
1-93
Chapter 16: Date Class
1-94
Section 16.1: Convert java.util.Date to java.sql.Date
1-95
Section 16.2: A basic date output
1-96
Section 16.3: Java 8 LocalDate and LocalDateTime objects
1-97
Section 16.4: Creating a Specific Date
1-98
Section 16.5: Converting Date to a certain String format
1-99
Section 16.6: LocalTime
1-100
Section 16.7: Convert formatted string representation of date to Date object
1-101
Section 16.8: Creating Date objects
1-102
Section 16.9: Comparing Date objects
1-103
Section 16.10: Converting String into Date
1-104
Section 16.11: Time Zones and java.util.Date
1-105
Chapter 17: Dates and Time (java.time.*)
1-106
Section 17.1: Calculate Dierence between 2 LocalDates
1-107
Section 17.2: Date and time
1-108
Section 17.3: Operations on dates and times
1-109
Section 17.4: Instant
1-110
Section 17.5: Usage of various classes of Date Time API
1-111
Section 17.6: Date Time Formatting
1-112
Section 17.7: Simple Date Manipulations
1-113
Chapter 18: LocalTime
1-114
Section 18.1: Amount of time between two LocalTime
1-115
Section 18.2: Intro
1-116
Section 18.3: Time Modification
1-117
Section 18.4: Time Zones and their time dierence
1-118
Chapter 19: BigDecimal
1-119
Section 19.1: Comparing BigDecimals
1-120
Section 19.2: Using BigDecimal instead of float
1-121
Section 19.3: BigDecimal.valueOf()
1-122
Section 19.4: Mathematical operations with BigDecimal
1-123
Section 19.5: Initialization of BigDecimals with value zero, one or ten