Inheritance in-depth with Java programming examples

  • Posted on
  • Posted in Java
Introduction Inheritance is one of the main concepts of (OOP) Object-oriented programming. If you haven’t read my post yet about OOP you can visit the link below: Inheritance is a mechanism that a particular class or object acquires the properties and functions of the other objects. It is like creating a strong relationship between objects.

How to secure Web MVC Application using Spring Security, JPA and H2 Database?

Introduction Spring Security is an authentication and access-control framework that provides protection against possible security attacks. Including click-jacking, cross-site request forgery, session hijacking, etc.. Authentication and Access-control Furthermore, other developers get confused between authentication and authorization/access-control. In that case, spring-security provides an architecture which designs to separate the authentication from authorization to avoid the confusion. Authentication is a

Implement Spring Data JPA in RESTful web service

Introduction In the previous tutorial, we implemented the JDBC to manipulate the database using our RESTful application.  Besides JDBC, there is another way of manipulating the database which through JPA or Java Persistence API implementation.  JPA handles the complexity of the JDBC-based data access layer. And it can reduce the too much boilerplate code that had to be implemented during

Spring RESTful with JDBC and H2 Database

Introduction In the previous tutorial, we build our RESTful web service using Spring Boot. Now, we are going to continue building that application by applying relational data access using JDBC and H2 Database. For the quick setup, we will update the Maven file which is the pom.xml in the previous application. Therefore, to add additional dependencies for JDBC and H2. Spring JDBC JDBC (Java

Building a RESTful Web Service using Spring Boot

Introduction RESTful stands for Representational State Transfer, but it is also called REST. RESTful is an architectural style where the application defines a resource that identifies through URI (Uniform Resource Identifier). Therefore, it uses to enable interaction between the client application and RESTful application which is work by sending HTTP requests. Including GET, POST, PUT,

Build Spring MVC Application using Spring Boot Framework

Introduction Spring MVC is one of the other frameworks of spring. It implements Model-View-Controller or MVC design patterns, which provide a unique and clean approach for building web sites. Therefore, this architecture helps the developers to manage the development by separating the different aspects of the application. MVC Structure Furthermore, the MVC (Model-View-Controller) structure consists of three kinds

Spring Framework: (IoC) Inversion of control

Introduction Inversion of control is a design paradigm, and it enables dependency injection patterns. Thus it provides a kind of mechanism that will assemble and collect objects during run time. Additionally, the assembler converts the object into beans to provide an injectable object that will inject to other objects or classes. Dependency Injection Dependency Injection is a pattern used by IoC assembler to

Learn Spring Framework in 2020: Quick Start

Introduction Spring is a java framework that provides a comprehensive programming and configuration design. It provides everything you need for creating a java enterprise application. Additionally, it also brings a lightweight structure that provides reusable and clean coding patterns Spring framework can support other frameworks to provide flexible development for various types of applications. However,

(OOP) Object-oriented programming

Introduction Object-oriented programming is a programming technique that focuses on data objects. And it defines entities, behaviors, or interfaces of that object. Technically in programming languages, an object consists of classes, properties, and methods. And also the object can be related or referred to other objects. See the illustration below for the example objects: As

Java Data Types: primitive and non-primitive

  • Posted on
  • Posted in Java
Java has features for handling data or variable, every data must have a declared type, in this tutorial, we will discuss different types of data, there are two groups of a data type in Java, primitive and non-primitive, and the primitive has subgroups that categorized into different kinds of data type, see the tree diagram
BCF Theme By aThemeArt - Proudly powered by WordPress.
BACK TO TOP