Sign in

Software Engineer | Tech Enthusiast | Freelance Writer

Introduction to the Java Persistence API

Photo by Terrance Raper on Unsplash

The Java Persistence API is concerned with persistence, which is defined broadly as any technique that allows Java objects to survive the application process that generated them. Although not all Java objects must be persisted, the majority of applications do. The JPA specification allows you to specify which objects should be saved and how they should be saved in your Java applications.

JPA is not a tool or framework, but rather a collection of ideas that may be implemented by any tool or framework. Although JPA’s object-relational mapping (ORM) paradigm was based on Hibernate at first, it has subsequently developed…

Brief Introduction to Java 8

On March 18, 2014, Oracle launched Java 8, a new version of the Java programming language. It was a game-changing version of the Java platform for program development. It provides a number of enhancements to the Java programming language, JVM, tools, and libraries.

Why Java 8 is important?

  • It’s Faster.

Java 8 will most likely execute your application quicker. In general, programs that have been upgraded to Java 8 show some type of speed boost without any further work or adjustment. …

How to reach your target audience?

Search Engine Optimization (SEO)

SEO is the process of assisting a website or piece of content to rank higher on Google. To put it simply, search engine optimization is the process of optimizing a piece of online content so that search engines like Google display it towards the top of the page when someone searches for something.

SEO in Google

Here you must think about the factor that Google really considers, even though no one has no idea what Google is showing to you when you search for something. …

Linux for Beginners

It’s an operating system that is built around the open-source Linux kernel. Linux kernel is used by different operating systems and those are called Linux distributions. I based on the idea of free and open-source software. We can change, edit to suit our needs, and Linux is developed and maintained by thousands of developers worldwide. It can be used to run huge global networks to control electronic projects like a Raspberry Pi. It can run one of the world's largest supercomputers as well.

These applications share the same basic components as,

  • Kernel
  • User Space
  • Resources

People with many different job…

Introduction to Binary Search Trees

What do you want to know about tree data structure?

A binary search tree is a very versatile data structure and it is faster when inserting, removing, and searching elements.

Introduction to 5G

Photo by James Yarema on Unsplash

In this article, I am going to talk about how 5g works, the importance of 5G and how it will affect the technology industry.

What is 5G?

It is the fifth-generation mobile network and a new global wireless standard after the 4G network. It will enable a new kind of network designed to connect virtually everything and everyone together including objects, machines and devices. 5G meant to deliver higher multi-Gbps data speeds. It will give more reliability, increased availability and a more uniform user experience to the users. Hence it gives higher performance and improved efficiency it will give a new user experience.

Who is the inventor of 5G?

Introduction to Java Multithreading

Java is a multi-threaded language, which means programmers can develop multi-threaded programs with the use of Java.

So this multi-threaded program consists of two or more parts, and those can run concurrently, and each part can control different tasks simultaneously. And it is making optimal use of the available resources under special circumstances, like when the computer has several CPUs.

Multiple processes share common processing resources like CPU is we called multitasking. Multithreading is extending the concept of multitasking into applications. Then you can subdivide some specific tasks within a single application into individual threads.

These eas threads can run…

Introduction to ArrayList

“ArrayList” can be found in the ‘java. util’ package and it is a class that can be resizable. As we all know built-in array size cannot be modified. If you want to add/remove an element you have to create a new array. But in ArrayList, you can add and remove elements whenever you want. ArrayList is more flexible than the traditional way and it inherits the AbstractList class and implements the List interface.

Photo by Ari He on Unsplash

Creating an array list and adding items.


import java.util.ArrayList; public class ArrayListEx{
ArrayList<String> books = new ArrayList<String>(); //Create an…

Introduction to Java variables

Photo by Jordan Brierley on Unsplash

Java variables provide us with named storage and that can manipulate our programs. Each variable has a specific type as well and it determines the size and layout of the variable’s memory. A set of operations can be applied to the variable and the range of values will be stored in the variable’s memory.

There are three types of variables available in Java.

  • Local variables
  • Instance variables
  • Class/Static Variables

Local Variables

  • These variables are declared in methods, blocks or constructors.
  • Created when the constructor, method or block is entered.
  • Access modifiers cannot be used for this kind of variables and…

What is an Object? What is a Class?

Photo by Joanna Kosinska on Unsplash

As we all know Java is an Object-oriented language. So, it supports following fundamental concepts like Inheritance, Encapsulation, Polymorphism, Abstraction, Classes, Objects, instances, and Methods etc.

In this article, we will look into the concepts which are Classes and Objects.

What is an object?

An object is a real-time entity that has states and behaviors. As an example, a cat has states like color, name, and breed. And also cat has behaviors like eating and sleeping. An object is an instance of a class and we can create an object of a class using the “new” keyword.

Objects in JAVA

Maleesha Thalagala

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store