Java Tutorial
Welcome to Java Tutorial by TutorialKart!
In this Java Tutorial, we shall start with learning the basic and core concepts of Java. We shall also learn how to program and build applications using Java.
About
Java is a widely used programming language in developing software. This Java Tutorial is aimed to help beginners to get started with Java Programming language.
Java Programming Language is one of the most popular languages among developers. Most of the production servers, regular desktops, workstations, smartphones etc., are powered by Java.
Java Tutorials Index
The following is a complete list of tutorials that we cover in this series of Java Tutorials.
Get Started
These Java tutorials help you understand what Java is, how to install Java on your personal computer, and how to start programming in Java using an Integrated Development Environment.
Basics
Following tutorials deal with the basic building blocks of Java programs, like how to write looping statements, decision-making statements; how to declare variables and how to understand their scope; what type of data can be stored in a variable.
Operators
Operators are used to perform operations on one or more operands and return the result of the respective operation.
Decision Making Statements
Decision making statements are used to implement the execution of a block of code based on the result of a boolean expression.
Loop Statements
Loop statements are used to implement the execution of a block of code repeatedly in a loop based on the result of a boolean expression, or for each item in a given collection.
Type Conversions
Type conversions are used to convert value of one datatype to a value of another datatype.
Console Operations
Console operations are used to cover the use cases like reading data from console, printing data to console, command line arguments when running a Java program, etc.
Object Oriented Concepts
Loop statements are used to implement the execution of a block of code repeatedly in a loop based on the result of a boolean expression, or for each item in a given collection.
- Classes and Objects
- Inheritance in Java
- Polymorphism in Java
- Java Method Overriding
- Java Method Overloading
- Java Final Keyword
- Abstraction in Java
- Encapsulation in Java
- Interfaces in Java
Strings
Strings and different operations on the Strings is usually the most used by Java programmers for developing software.
Arrays
Array is an ordered collection of elements. The following tutorials help us understand what an Array is, and how to work with arrays in programs.
- Java Array
- Java Array – Initialize
- Java Array – Print
- Java Array of Integers
- Java Array of Strings
- Java Array of Objects
- Java Array of Arrays
- Java Array – Iterate over Elements
- Java Array – For Loop
- Java Array – While Loop
- Java Array – ForEach
- Java Array – Append Element(s)
- Java Array – Check if Empty
- Java Array – Average
- Java Array – Check if Array contains Element
- Java Array – Find Index of Item in Array
- Java Array – Sum
- Java Array – Concatenate
- Java Array – Find Smallest Number
- Java Array – Find Largest Number
- Java Array – Reverse
File Operations
Java provides an inbuilt library to handle file operations like reading a file; writing to a file; appending data to an existing file; or deleting a file. Following example help you with the execution of file operations programmatically using Java.
- Read contents of a File line by line using BufferedReader
- Read contents of a File line by line using Stream in Java 8
- Filter list of files or directories in a folder using Java
- Java Copy File
- Java Delete File
- Java Rename File
- Java – Download File from URL
- Java – Replace a String in File
Others
Java has many inbuilt classes to support different type of collections and use cases. The following tutorials cover detailed explanation of the classes and their methods.
ArrayList Operations
ArrayList is a Class in Java that is used as a Collection. Following tutorials help you deal some of the operations that can be performed on ArrayLists.
- Print all elements of an ArrayList in Java
- Insert an Element at a specific position in ArrayList in Java
- Delete Nth element of an ArrayList in Java
- Convert String Array to ArrayList in Java
Date and Time
- Access Date and Time in Java using java.util.Date()
- Get Current Time in Java
- Get Current Date in Java
- Get Current Date and Time (Timestamp) in Java
- Current Date in MM/DD/YY format in Java
- Current Date in YYYY-MM-DD format in Java
- Current Date in MM/DD/YYYY format in Java
Design Patterns
Exceptions
- ArithmeticException
- ArrayIndexOutOfBoundsException
- ArrayStoreException
- NullPointerException
- NumberFormatException
- StringIndexOutOfBoundsException
Other Example Programs
Useful Resources
Conclusion
We have gone through the basics of Java Programming, Object Oriented Programming concepts with Java, and some of the useful classes and their methods in Java.