Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
HowToDoInJava
  • Java
  • Spring AI
  • Spring Boot
  • Hibernate
  • JUnit 5
  • Interview

Java Tutorial

Java is one of the most popular programming languages for developing all kinds of desktop applications, web applications and mobile apps. The following articles will help you quickly become familiar with Java language and move towards more complex concepts such as API and cloud development. 1. Java Language …

Lokesh Gupta

August 15, 2024

Java Basics, Series
Series

Java is one of the most popular programming languages for developing all kinds of desktop applications, web applications and mobile apps. The following articles will help you quickly become familiar with Java language and move towards more complex concepts such as API and cloud development.

1. Java Language Basics

Start with syntax and the basic building blocks of the Java language.

  • Java Introduction
  • Java Installation
  • Naming Conventions
  • Java Keywords
  • Java Hello World Program
  • Java main() Method
  • Java Operators
  • Java Variables
  • Java Data Types
  • Java Primitive Types
  • Java Comments
  • Block Statements
  • Pass-by-value or Pass-by-reference

2. Flow Control Statements

Learn to write statements and control the flow of the programs.

  • Java if-else
  • Java switch
  • Ternary Operator
  • Java for loop
  • Java for-each loop
  • Java while loop
  • Java do-while loop
  • Java break Keyword
  • Java continue Keyword
  • Labeled Statements

3. Java OOP

Learn to create, arrange and manage objects and their relationships in Java.

4. Java Strings

Strings are always the most used constructs in any programming language. Learn to work on String in Java.

  • Guide to String Class
  • Java String Constant Pool
  • Why Strings are Immutable in Java?
  • Splitting a String
  • Joining the Strings

5. Java Exceptions

A program can raise errors due to errors in the program as well as runtime errors in the execution environment. Learn to handle both.

  • Java try-catch-finally blocks
  • Java Try with Resources
  • Java throw and throws Keywords
  • Checked and Unchecked Exceptions
  • Java Custom Exceptions
  • Java Synchronous and Asynchronous Exceptions
  • Java NullPointerException
  • Java Suppressed Exceptions
  • Exception Handling Best Practices

6. Java Array

Arrays are the most basic container of multiple elements. Learn to work on arrays in Java.

  • Guide to Array in Java
  • Printing an Array
  • Cloning an Array
  • Copying Array Range
  • Intersection of Two Arrays
  • Union of Two Arrays

7. Java Collections

Apart from the array, Java supports more advanced collection types.

  • Java List
  • Java Map
  • Java Comparable
  • Java Comparator
  • Java Iterator
  • Java Generics
  • Java Sorting

8. Java IO

Learn the most basic read-and-write operations on files in Java.

  • How Java IO Works Internally?
  • Create a File
  • Read a File
  • Write to a File
  • Append to a File

9. Java Streams

Streams are a rather new addition to the language but have made it super easy.

  • Java Stream API
  • Functional Interfaces
  • Default Methods
  • Lambda Expressions

10. Java Runtime

Learn to set up and interact with the Java development environment.

  • JDK vs. JRE vs. JVM
  • Java 32 bit vs 64 bit
  • java.exe vs javaw.exe
  • Java Classpath
  • System Properties
  • Command-Line Arguments
  • Little-Endien vs Big-Endien
  • Generating Bytecode

11. Misc Topics

  • Builder Pattern for Java Records
  • Java Annotations Tutorial
  • Guide to Java Cloning
  • Java Versions and Features

12. Java Examples

  • Printf-Style Output Formatting
  • Rounding off to 2 Decimal Places

Happy Learning !!

Java Basics

  • Java Introduction
  • Installation
  • Hello World
  • Naming Conventions
  • JDK, JRE and JVM
  • Class and Object
  • ClassPath
  • Control Flow
  • Operators
  • Data Types
  • Primitive Types
  • Variables
  • Comments
  • Main() Method
  • Command Line Args
  • Wrapper Classes
  • Statements
  • Block Statement
  • System Properties
  • Static Import
  • HashCode() and equals()
  • Immutable Class
  • 32-bit vs 64-bit
  • Java.exe vs Javaw.exe
  • Generate Bytecode
  • Little-Endian vs Big-Endian
  • Pass-by-Value Vs. Reference

Table of Contents

  • 1. Java Language Basics
  • 2. Flow Control Statements
  • 3. Java OOP
  • 4. Java Strings
  • 5. Java Exceptions
  • 6. Java Array
  • 7. Java Collections
  • 8. Java IO
  • 9. Java Streams
  • 10. Java Runtime
  • 11. Misc Topics
  • 12. Java Examples
Photo of author

Lokesh Gupta

A fun-loving family man, passionate about computers and problem-solving, with over 15 years of experience in Java and related technologies. An avid Sci-Fi movie enthusiast and a fan of Christopher Nolan and Quentin Tarantino.
Follow on Twitter Portfolio

Previous

How to Sort an Array, List, Map or Stream in Java

Next

Top Mock Testing Frameworks in Java

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.

Tutorial Series

OOP

Regex

Maven

Logging

TypeScript

Python

Meta Links

About Us

Advertise

Contact Us

Privacy Policy

Our Blogs

REST API Tutorial

Follow On:

  • Github
  • LinkedIn
  • Twitter
  • Facebook
Copyright © 2026 | Sitemap