Core Java Tutorials

  • Introduction and Overview of Java Programming
  • Welcome to the Core Java Tutorials series, be here for couple of weeks and follow the series step by step. You guys are going to view one of the best content over internet as if today. Let?s start our journey to be a Core Java expert by following this Java Programming Tutorials series.


  • Install Java and Environment Setup on Windows, Linux or Mac OS
  • In previous article we saw What is Java? Where and Why to use Java? And features of Java programming language. In this particular article we will see how to setup Java environment in local machine.


  • Java Basic Syntax and Hello World Example
  • Java is a simple and easy to understand programming language, most of its syntax is inherited from c and c++. In Java, classes are the root of each program written, everything goes under a class.


  • Datatypes and Variables in Java Programming
  • In general programming terms a variable is a symbolic name that points to some reserved storage location. Every storage location that is pointed by a variable can consists of some value or it can be empty, that means a variable is an identifier for some value so that the operations can be performed on that value.


  • Operators in Java
  • In this article we will see 'What are available Operators in Java in Java', and how to use them with example.


  • Object Oriented Programming Paradigm - OOPS
  • Java is an object oriented programming language, a language is considered as a programming language if that language has following properties. 1) Abstraction 2)Inheritance 3) Polymorphism 4) Encapsulation


  • Inheritance in Java with Example
  • In this article we will see 'What is Inheritance in Java', How to used it, super class and sub classes with example.


  • Method overriding in Java with example
  • In this article we will see 'What is method overriding in Java', and how to use it with example.


  • Method overloading in Java with example
  • In this article we will see 'What is method overloading in Java', and how to use it with example.


  • "this" keyword in Java with example
  • In Java "this" keyword is used to refer the current object, and can be used to call current class constructor.


  • "super" keyword in Java with example
  • In Java, super keyword is used to refer to immediate parent class of a child class. In other words super keyword is used by a subclass whenever it need to refer to its immediate super class.


  • Access Modifiers in Java with Examples
  • In Java there are three access modifiers public, private and protected but there is one more access level called default. If any class, method or variable does not have public, private or protected access level than the access level is called default. So in Java everything has a access level, at least default.


  • Java Loops - for, while and do-while
  • In this article we will see looping in Java, loops are used to execute a block of code saveral times. There are three types of loops in Java, for loop, while loop and do-while loop. We will see their syntax and usage with example in rest part of this article.


  • Java Decision Making - if else and switch statements with example
  • If-else statements are most commonly used decision making keywords in any programming language and hence in Java. If-else statements works on the basis of a conditional expression in if(condition_expression), if the condition returns true than the code in if?s body executes and if the expression returns false than code in else?s body executes. Here is a basic syntax of simple if-else statement.


  • Arrays in Java - Declaration, Initialization and Iterating through an Array in Java
  • In this article we will learn about Array Declaration, Initialization and Iteration in Java. We will come to known ways of array declaration, assigning values to an array and iteration through an array to access values.


  • Object and Classes in Java with example
  • Java is a object oriented programming language, that means it solves problems by mapping them to real world objects.

    An object-based Java application is a Java application whose design is based on declaring classes, creating objects from them, and designing interactions between these objects.


  • Methods and variables in Java with example
  • Method describe behaviour of an object. A method is declared to perform an operation and has statements (logic) to be performed on the instances of the class.


  • Constructors in Java with example
  • In Java a constructor is a special type of method, which is used to instantiate (create an object) the class.

    A constructor must have the same name as the name of the class, it may be parameterised or without any parameter, constructors are solely used to instantiate a class and do not have return value.


  • Abstract classes in Java with Example
  • In this article we will see what are 'Abstract classes in Java', and how to use them with example.


  • Interfaces in java, declaration and Implementation with Examples
  • Interfaces are kind of a contract in Java Programming, what contract means here is you can have a number of method declared in an interface and every class that is implementing this interface must implement all methods of the interface, for example you can have a interface Car like:


  • Java packages and Import statement with Example
  • In this article we will see what are 'Java packages and Import statement in Java', and how to use Java packages with example.


  • Type Casting in Java
  • In this article we will see 'Type Casting in Java', and how to use Type Casting with example.


  • String Handling in Java with Example
  • In this article we will see what are 'Java Strings', and how to define and use Strings in Java with example.


  • Nested Inner Classes in Java
  • In this article we will see about 'Nested Inner Classes in Java', and how to use Nested Class with example.


  • How to create an Immutable class in Java - Example
  • An immutable class in Java is a class, whose object's states can not be changed once created like String, Integer, Float etc. In this article we will see what is an Immutable class, what are benefits of having an Immutable class and how to construct a perfect immutable class in Java.


  • Enums in Java, Declaration and Implementation with Example
  • In this article we will see about Enums in Java, we will come to know what is Enum in Java?, How to declare a Enum and How to access Enum values. Enum were introduced in Java5.0 to restrict the value of a variable to some predefined options, this can reduce bugs in applications.


  • How to override hashCode() and equals() methods in Java - Example
  • In this article we will see ?hashCode()? and ?equals()? methods from java.lang.Object class in details. We will see different implementations and how to override them in efficient manner.


  • How HashMap works in Java or Internal Working of HashMap
  • One of the most popular and frequently asked question from Core Java interview is, How HashMap works in Java or Internal Working of HashMap or How get() and put() methods of HashMap works or How HashMap ensures uniqueness of its keys.


  • Exception Handling in Java
  • In this article we will see 'Exception Handling in Java', Throwable class, and Java Exception hierarchy.


  • Exception Handling using try, catch in Java
  • In this article we will see 'What is try and catch in Java', and how to use them with example.


  • 'throw','throws' and 'finally' keyword in Java Exception handling
  • In this article we will see 'What is finally keyword in Java', and how to use finally with combination of try and catch with example.


  • User defined exceptions in Java with Example
  • In this article we will see what are 'User defined exceptions in Java', and how to define and use user defined exceptions with example.


  • What is Garbage Collector and How it works in Java with example
  • Like any other programming language, java programs too needs some memory to perform its operations. The memory is divided in a number of regions like Stack, Heap , Method Area .. etc.

    All Java objects live and die in Heap Memory and this is the only part of memory where Garbage Collector performs its operations.


Java Programming Tutorials

Java Persistence API (JPA) Tutorials

  • JPA one to one mapping with annotation (Java persistence API)
  • n a bi-directional one to one mapping, both sides are responsibve for managing the relationship and hence both entities must have each other's instances setted to their instance using getters and setters, failing so will end up inserting a null in the db foreign key columns and one could not be able to get other object's details with one object.


  • JPA one to many mapping with annotation (Java persistence API)
  • In previous article we have seen, how to configure one to one mapping in JPA in both unidirectional and bidirectional way. In this article we will see how yo configure one to many mappings in JPA using annotations.


  • JPA many to many mapping with annotation (Java persistence API)
  • In previous articles we have seen one to one and one to many mappings in JPA. In this article we will see how to configure and use Many to Many mappings in JPA.


  • JPA Inheritance Strategies using annotations - Table per hierarchy
  • In our previous articles we have seen, one to one, many to one and many to many mappings, in this article we will see how to map a inheritance class structures with JPA. There are three major strategies for doing this. 1) Table per hierarchy 2) Table per concrete class 3) Table per subclass


  • JPA Inheritance Strategies using annotations - Table per concrete class
  • In our previous articles we have seen, one to one, many to one and many to many mappings, in this article we will see how to map a inheritance class structures with JPA. There are three major strategies for doing this. 1) Table per hierarchy 2) Table per concrete class 3) Table per subclass


  • JPA Inheritance Strategies using annotations - Table per sub class
  • In our previous articles we have seen, one to one, many to one and many to many mappings, in this article we will see how to map a inheritance class structures with JPA. There are three major strategies for doing this. 1) Table per hierarchy 2) Table per concrete class 3) Table per subclass


Spring Framework Tutorials

  • Spring Framework Introduction, modules advantages and usage
  • Spring is the most popular light weight application development framework for Java Enterprise Applications, it was created by Rod Johnson?in?2003.? Spring framework is a full stack application development framework, including Spring IOC, Spring MVC, Spring AOP and other supportive templates for almost all general purpose development.


  • Setup Spring project in Eclipse with Maven
  • So far we have seen, what is spring framework and why to use it in Java application development. In this particular article we will see how to get started with spring in Eclipse and how to setup a initial Spring project.


  • Spring IOC using Setter Method - Maven Example
  • In our previous discussions we have seen, how to create a sample spring project with maven and import it in Eclipse. In this article we will see how to configure dependency injection in spring using setter method.


  • Spring IOC using Constructor Method - Maven Example
  • In our previous discussions we have seen, how to create a sample spring project with maven and import it in Eclipse. In this article we will see how to configure dependency injection in spring using Constructor Argument.


  • Spring Auto-wiring by name example and explanation
  • In this particular article we will see one of the 5 autowiring strategy in spring, auto-wiring with name means if a bean name is same as the name of a property of another bean, wire it. For example if we have a Orange bean (orange) and another bean Apple(apple) has a property with name orange auto-wire oramge in apple.


  • Spring Auto-wiring by type example and explanation
  • In this particular article we will see one of the 5 autowiring strategy in spring, auto-wiring with type means if a bean type is same as the type of a property in another bean, wire it. For example if we have a Orange bean (orange) and another bean Apple(apple) has a property with type Orange auto-wire orange in apple.


  • How to Create Spring Boot project with Maven
  • In this article we will see how to create a Spring Boot project with Maven and Import it in Eclipse.


  • Microservices using Spring Boot and Rest APIs
  • how to create microservices using Spring Boot and Rest APIs. We will create an example microservice using spring Boot, while this service will interact with other micro services and outer world with the help of REST APIs.


  • Spring MVC Hello World example with Maven
  • In this article, we will see how to create a Spring MVC Hello World example with Maven using Spring 5 and Java 8. We will also look into the required Maven dependencies and configurations.


  • Spring RESTful web services example with Maven
  • In this article, we will see how to create a Spring RESTful web services with Maven using Spring 5 and Java 8. We will also look into required maven dependencies and configurations.


Java 8 Tutorials

Like Us

Other Sections

Big Data and No Sql

Cassndra, Redis, Spark, Hadoop, Map...

Python

Python Tutorials, Interview Questio...

Database

Database Tutorials, Interview Quest...

Top Sections