top of page
Home: Welcome
Search


Introduction to Java
Java is a popular programming language which created by sun micro systems and later acquired by Oracle.Java is an object-oriented,...

Keshari Abeysinghe
Jul 19, 20202 min read
Â
Â
Â
Thread Pool & Shutdown Hook
What is Thread Pool in Java? A thread pool reuses previously created threads to execute current tasks and offers a solution to the...

Keshari Abeysinghe
Dec 7, 20201 min read
Â
Â
Â
The Daemon Thread in Java
Daemon thread in Java provides service to the user thread which runs in the background. It is considered to be a low priority thread...

Keshari Abeysinghe
Aug 7, 20201 min read
Â
Â
Â


Thread Priority & Thread Scheduling
Thread priority In Java ,always assigns priority to each thread to describe how early it gets execution and selected by thread...

Keshari Abeysinghe
Aug 4, 20202 min read
Â
Â
Â


Creating a Thread in Java
To create a thread, Java provides a class Thread and an interface Runnable both are located into java.lang package.We can create thread...

Keshari Abeysinghe
Aug 3, 20203 min read
Â
Â
Â


Introduction to Threads in Java
What is a thread ? A thread is a lightweight sub-process, the smallest unit of processing. Threads are independent. If there occurs an...

Keshari Abeysinghe
Aug 3, 20202 min read
Â
Â
Â


Constructors in Java
Constructors are required to create objects for a class. Constructor is a block of code similar to method and special type of method...

Keshari Abeysinghe
Jul 21, 20203 min read
Â
Â
Â


JDK,JRE and JVM
JVM JVM is the Java Virtual Machine which provide some runtime environment for the java byte code can be executed.It is an abstract...

Keshari Abeysinghe
Jul 20, 20201 min read
Â
Â
Â


Data Types
Why Data Types Are Important ? Data types are especially important in Java because it is a strongly typed language. This means that all...

Keshari Abeysinghe
Jul 20, 20201 min read
Â
Â
Â


How to be a better Java Developer....
Java is one of popular language in the world.. It is very reliable and is widely used in our day to day lives, prominently seen in web or...

Keshari Abeysinghe
Jul 20, 20202 min read
Â
Â
Â
Inheritance
Inheritance is a mechanism in which one class acquires the property of another class.For example, a child inherits the traits of his/her...

Keshari Abeysinghe
Mar 27, 20201 min read
Â
Â
Â
Aggregation in java
In Java, aggregation represents HAS-A relationship, which means when a class contains reference of another class known to have...

Keshari Abeysinghe
Mar 25, 20201 min read
Â
Â
Â
Polymorphism
Polymorphism in Java occurs when there are one or more classes or objects related to each other by inheritance. In other words, it is the...

Keshari Abeysinghe
Mar 24, 20202 min read
Â
Â
Â
Abstraction in Java
Abstraction in any programming language works in many ways. It can be seen from creating subroutines to defining interfaces for making...

Keshari Abeysinghe
Mar 23, 20202 min read
Â
Â
Â
Encapsulation
Encapsulation is one of the key features of object-oriented programming. Encapsulation refers to the bundling of fields and methods...

Keshari Abeysinghe
Mar 20, 20202 min read
Â
Â
Â
Access modifiers
The access modifiers in Java specifies the accessibility or scope of a field, method, constructor, or class.There are four types of Java...

Keshari Abeysinghe
Mar 19, 20202 min read
Â
Â
Â


Exception Handling
What is an exception ? Exception is an unwanted and unexpected error which occurs while running the normal flow of the programme . An...

Keshari Abeysinghe
Feb 29, 20203 min read
Â
Â
Â
Try -Catch in Java
Try block The try block contains set of statements where an exception can occur. A try block is always followed by a catch block, which...

Keshari Abeysinghe
Feb 28, 20202 min read
Â
Â
Â
Multiple Catch block in java
A try block can be followed by multiple catch blocks.lets see few rules about multiple catch blocks with the help of examples. To read...

Keshari Abeysinghe
Feb 27, 20201 min read
Â
Â
Â
Nested Try-Catch block
When a try catch block is present in another try block then it is called the nested try catch block.Sometimes a situation may arise where...

Keshari Abeysinghe
Feb 25, 20201 min read
Â
Â
Â
bottom of page