Thursday, February 21, 2019

Java Basics Tutorial

Java, one of the most popular programming language, was conceived by James Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike Sheridan at Sun Microsystems, Inc. in 1991. It was publicly released in 1995.

Java is an object oriented, high level language but what sets it apart is that Java is platform independent and it can run on a variety of platforms.

This Java beginners tutorial helps in understanding the basic concepts of Java programming language.

Java Getting Started

  1. How to Install Java in Ubuntu
  2. First Java Program - Hello World Java Program
  3. Primitive Data Types in Java
  4. Java Variable Types With Examples
  5. Literals in Java
  6. What Are JVM, JRE And JDK in Java

Operators in Java

  1. Arithmetic And Unary Operators in Java
  2. Equality And Relational Operators in Java
  3. Conditional Operators in Java
  4. Ternary Operator in Java
  5. instanceof Operator in Java
  6. Difference Between equals() Method And equality Operator == in Java

Conditional Statements & Loops in Java

  1. if else Statement in Java With Examples
  2. Switch Case Statement in Java
  3. Switch Expressions in Java 12
  4. Java for Loop With Examples
  5. Java while Loop With Examples
  6. Java do-while Loop With Examples
  7. break Statement in Java
  8. continue Statement in Java
  9. return Statement in Java

Java Class And Object

  1. Class in Java
  2. Object in Java
  3. Object Creation Using new Operator in Java
  4. Object class in Java
  5. Type Wrapper Classes in Java
  6. Abstract Class in Java
  7. Nested Class And Inner Class in Java
  8. Object Cloning in Java
  9. Shallow Copy And Deep Copy in Java Object Cloning

Java Constructor

  1. Constructor in Java
  2. Constructor Chaining in Java
  3. Constructor Overloading in Java
  4. Initializer Block in Java

Java Basics

  1. Access Modifiers in Java
  2. Package in Java
  3. Java Automatic Numeric Type Promotion
  4. Why Class Name And File Name Should be Same in Java
  5. Why main Method static in Java
  6. Java Pass by Value or Pass by Reference
  7. this Keyword in Java With Examples
  8. super Keyword in Java With Examples
  9. final Keyword in Java With Examples
  10. strictfp in Java
  11. finalize Method in Java
  12. Type Casting in Java
  13. Why no Multiple Inheritance in Java

static in Java

  1. static Keyword in Java With Examples
  2. static Method Overloading or Overriding in Java
  3. static Import in Java
  4. static Reference to The Non-static Method or Field Error
  5. static Block in Java

Array in Java

  1. Array in Java With Examples

Java Math

  1. BigDecimal in Java
  2. BigInteger in Java

OOPS Concepts

  1. Encapsulation in Java
  2. Polymorphism in Java
  3. Abstraction in Java
  4. Inheritance in Java
  5. Difference Between Encapsulation And Abstraction in Java
  6. Method Overloading in Java
  7. Method Overriding in Java
  8. Association, Aggregation And Composition in Java

Interface in Java

  1. Interface in Java
  2. Marker Interface in Java
  3. Difference Between Abstract Class And Interface in Java
  4. Interface Default Methods in Java
  5. Interface Static Methods in Java
  6. Private Methods in Java Interface

String in Java

  1. String in Java Tutorial
  2. String Pool in Java
  3. Why is String Immutable in Java
  4. Compact Strings in Java
  5. Check String Null or Empty in Java
  6. String Comparison in Java
  7. Java String charAt() Method With Examples
  8. Getting Substring - Java String substring() Method
  9. Java String Search Using indexOf(), lastIndexOf() And contains() Methods
  10. Java trim(), strip() - Removing Spaces From String
  11. Splitting a String - Java split() Method
  12. Joining Strings - Java join() Method
  13. intern() Method in Java String
  14. matches() method in Java String
  15. StringJoiner Class in Java With Examples
  16. StringBuffer Class in Java
  17. StringBuilder Class in Java
  18. String Vs StringBuffer Vs StringBuilder in Java
  19. String And Thread-Safety in Java
  20. How to Create Immutable Class in Java

Java Exception handling

  1. Java Exception Handling Tutorial
  2. try-catch Block in Java Exception Handling
  3. finally Block in Java Exception Handling
  4. Multiple Catch Blocks in Java Exception Handling
  5. Nested Try Statements in Java Exception Handling
  6. throw Statement in Java Exception Handling
  7. throws Keyword in Java Exception Handling
  8. Exception Propagation in Java Exception Handling
  9. Java Exception Handling And Method Overriding
  10. Difference Between Checked And Unchecked Exceptions in Java
  11. Difference Between throw And throws in Java
  12. final Vs finally Vs finalize in Java
  13. Creating Custom Exception Class in Java
  14. Multi-Catch Statement in Java Exception Handling
  15. Try-With-Resources in Java With Examples
  16. Best Practices For Exception Handling in Java
  17. java.lang.ClassNotFoundException - Resolving ClassNotFoundException in Java
  18. java.lang.ClassCastException - Resolving ClassCastException in Java
  19. java.lang.UnsupportedClassVersionError - Resolving UnsupportedClassVersionError in Java
  20. Difference Between StackOverflowError and OutOfMemoryError in Java