In every program, whether you build it using java or any other language, there may be errors that might occur at runtime. Here, we will go through the java exception handling with some examples.

Java’s exception-handling mechanism is a clean, well-lighted way to handle “exceptional situations” that pop at runtime…

Objects are born and objects die. we are in charge of an object’s lifecycle and decide when and how to construct them. We can destroy the objects after using it. If we couldn’t delete the object and simply abandon it, the heartless Garbage Collector (GC) can vaporize it, reclaiming the…

Java is an object-oriented programming language and you need to deal with objects and classes when programming. But Java also supports procedural programming. The main drawback that you will get from using this procedural method of programming is if you get a change request while in the middle of the…

As a java developer, you must know the basics of Java programming before solving big problems. So let’s go through some basics of Java.

You can think of a class as like a blueprint. For example, the class House below is a blueprint of a house and the objects are…

When working with java, you need to have a better understanding of the java collections framework. This is used to store and manipulate the group of objects. Java Collection framework on data such as searching, insertion, manipulation, and deletion.

Java Collection framework produces many interfaces(List, Set, Queue, and Deque) which…

One of the solutions to a floating-point error in java is Big decimal. We can define the BigDecimal as an arbitrary-precision signed immutable number. This BigDecimal has two parts namely,

1. Unscaled value — an arbitrary precision integer.

2. Scale — A 32-bit integer representing the number of digits to…

How do computers represent the floating-point number? is an important question when comes to programming. As software developers, we need to understand core concepts before solving complex mathematical problems and this led to becoming successful in your career as well.

The most commonly used floating-point standard is the IEEE 754…

Pasan Kamburugamuwa

Software Engineer

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