In this live, instructor-led training course, students who already have a programming background will learn to program in Java. Attendees will learn: how Java works and its place in the world of programming languages; to work with and manipulate strings; to perform math operations; to work with Java operators and loops; to gain a deeper understanding of Object Oriented Programming concepts; to make best use of the Java collections framework; best practices for dealing with exceptions; to package Java code; and work with external data storage systems. This Java course is taught using Java 12.AudienceStudents new to the Java language who already have experience with other programming languages.PrerequisitesThis course is specially designed for individuals with prior programming background. You should also have a working knowledge of Object Oriented Programming concepts. If you have no prior programming experience or are not familiar with Object Oriented Programming, you should consider our "Java Programming Level 1: Introduction for Non-Programmers" course instead.Course OutlineGetting StartedIntroductionWriting, Compiling, and Executing Your Hello World ProgramExercise 1: Creating Your Hello World Program in JavaBasic Syntax and Naming ConventionsPrinting Out Different Data TypesVariables and Variable TypesExercise 2: Printing Different Types of DataPrimitive versus Reference Data TypesNullChars and StringsExercise 3: Declaring StringsDoing Some MathExercise 4: Solving a Simple Trigonometry ProblemComments Help You to Share CodeCLI versus GUIExercise 5: Running the Code from the CLIActivity 1: Obtaining the Minimum of Two NumbersSummaryLearning the BasicsIntroductionControlling the Flow of Your ProgramsExercise 1: Creating a Basic if StatementComparison OperatorsExercise 2: Using Java Comparison OperatorsNested if StatementsExercise 3: Implementing a Nested if StatementBranching Two Ways with if and elseExercise 4: Using if and else StatementsUsing Complex ConditionalsExercise 5: Using Logical Operators to Create Complex ConditionalsUsing Arithmetic Operators in an if ConditionThe Ternary OperatorExercise 6: Using the Ternary OperatorEquality Can Be TrickyExercise 7: Comparing Decimal ValuesComparing StringsUsing switch StatementsExercise 8: Using switchExercise 9: Allowing Cases to Fall ThroughUsing Java 12 Enhanced switch StatementsExercise 10: Using Java 12 switch StatementsLooping and Performing Repetitive TasksLooping with the for LoopExercise 11: Using a Classic for LoopExercise 12: Using an Enhanced for LoopJumping Out of Loops with Break and ContinueExercise 13: Using break and continueUsing the while LoopExercise 14: Using a while LoopUsing the do-while LoopHandling Command-Line ArgumentsExercise 15: Testing Command-Line ArgumentsConverting Command-Line ArgumentsExercise 16: Converting String to Integers and DoublesDiving Deeper into Variables — ImmutabilityComparing Final and ImmutableUsing Static ValuesUsing Local Variable Type InferenceActivity 1: Taking Input and Comparing RangesSummaryObject-Oriented ProgrammingIntroductionThe Anatomy of a ClassWorking with Objects in JavaChecking the Precedence of a Class with instanceofExercise 1: Creating the WordTool ClassActivity 1: Adding the Frequency-of-Symbol Calculation to WordTooInheritance in JavaOverriding and Hiding MethodsAvoiding Overriding: Final Classes and MethodsOverloading Methods and ConstructorsRecursionAnnotationsInterfacesInner ClassesDocumenting with JavaDocActivity 2: Adding Documentation to WordToolSummaryCollections, Lists and Java's Built-In APIsIntroductionArraysActivity 1: Searching for Multiple Occurrences in an ArraySetsListsExercise 1: Creating the AnalyzeInputApplicationMapsIterating through CollectionsExercise 2: Bringing Analytics into the AnalyzeInput ApplicationSorting CollectionsExercise 3: Sort the Results from the AnalyzeInput ApplicationPropertiesActivity 2: Iterating through Large ListsSummaryExceptionsIntroductionA Simple Exception ExampleNullPointerException – Have No FearCatching ExceptionsExercise 1: Logging ExceptionsThrows and ThrowExercise 2: Breaking the Law (and Fixing It)The finally BlockActivity 1: Designing an Exception Class LoggingDataBest Practices for Handling ExceptionsWhere Do Exceptions Come from?SummaryLibraries, Packages, and ModulesIntroductionOrganizing Code into PackagesImporting ClassesExercise 1: Importing ClassesFully Qualified Class NamesImporting All Classes in a PackageDealing with Duplicated NamesStatic ImportsCreating a PackageNaming Your PackageDirectories and PackagesExercise 2: Creating a Package for a Fitness Tracking AppBuilding JAR FilesExercise 3: Building a JAR FileDefining the ManifestExercise 4: Building an Executable JAR FileBuild ToolsMavenExercise 5: Creating a Maven ProjectExercise 6: Adding Java Sources to the Maven ProjectExercise 7: Building the Maven ProjectExercise 8: Creating an Executable JAR with MavenUsing GradleExercise 9: Creating a Gradle ProjectExercise 10: Building an Executable JAR with GradleUsing Third-Party LibrariesFinding the LibrariesAdding a Project DependencyExercise 11: Adding a Third-Party Library DependencyUsing the Apache Commons Lang LibraryExercise 8: Creating an Executable JAR with MavenUsing GradleExercise 9: Creating a Gradle ProjectExercise 10: Building an Executable JAR with GradleUsing Third-Party LibrariesFinding the LibrariesAdding a Project DependencyExercise 11: Adding a Third-Party Library DependencyUsing the Apache Commons Lang Library LibraryUsing ModulesCreating ModulesExercise 13: Creating a Project for a ModuleExercise 14: Creating a Second Module Using the First OneActivity 1: Tracking Summer High TemperaturesSummarySockets, Files, and StreamsIntroductionListing Files and DirectoriesSeparating Directories from FilesExercise 1: Listing theContents of SubdirectoriesCreating and Writing to a FileActivity 1: Writing the Directory Structure to a FileReading an Existing FileReading a Properties FileExercise 2: Creating a Properties File from the CLIWhat are Streams?The Different Streams of the Java LanguageWhat are Sockets?Creating a SocketServerWriting Data on and Reading Data from aSocketActivity 2: Improving the EchoServer and EchoClient ProgramsBlocking and Non-Blocking CallsSummary
Overview
Taught by
ONLC Training Centers