Java SE

Install Oracle JDK in Ubuntu
Oracle Java is the proprietary, reference implementation for Java. This is no longer currently available in a supported Ubuntu repository. This article shows you the way to manually install the latest Oracle Java...


Concurrency:
Introduction to Threads
Modern computers have the capability to execute multiple tasks at the same time. Have you ever wondered, how it is achieved in the modern computers only, while older batch processing systems were unable to do so?...

Thread Synchronization in Java
Multi-thread applications are useful to execute more than one operations simultaneously. However, if more than one threads are accessing a shared resource, there is a high risk of data corruption or unexpected result...

Thread Deadlock
Thread deadlock is a hot topic in multi-threading which makes multi-threading a complex area for beginners. Thread deadlock is a situation where more than one threads with a shared resource are waiting for other thread....

Fork/Join Framework
Java provides a strong multithreading platform to the programmers and time to time it introduces new features. Fork/Join framework is such an enhancement introduced in Java 1.7 to optimize the multicore processors in...


Garbage Collection
Garbage collection is one of the major problem, that is being ignored by most of the Java developers. However, knowing the impact of garbage collection will help you to improve your art of coding in performance critical...


Immutability Of String
Java defines some objects as immutable objects; developers cannot modify those objects once they are created. String objects and wrapper class objects are the best examples for immutable objects. This article covers the...


Introduction to Interface (with Java 8 Features)
Interfaces are used in Java to provide a template to developers and to avoid dead diamond problem in multiple inheritance. First of all lets clear the rules of Java interfaces. In an interface all the fields (variables) are by default...

Object Oriented Programming:
OOP: Introduction
Object Oriented Programming (OOP) is a programming paradigm used to develop modern applications. OOP allows developers to map real world problems, exactly in the same manner in your desired object oriented...

OOP: Encapsulation
Object Oriented Programming has four major concepts, which are Encapsulation, Inheritance, Abstraction and Polymorphism. This article deals with the first concept Encapsulation. Consider this problem. The ABC book...

OOP: Inheritance
​This article is the third article in the series of Object Oriented Programming tutorials, explaining the OOP concept - Inheritance. The same problem used in the Encapsulation tutorial is used here to explain Inheritance...

OOP: Abstraction
Abstraction is one of the four Object Oriented Concepts. This article briefly explains the concept and the purpose of abstraction. In object oriented programming all the problems are mapped as an interaction of objects...

OOP: Polymorphism
This article explains the Object Oriented Concept, Polymorphism. If you are new to Object Oriented Programming, visit to this link and get an introduction about OOP. Polymorphism is the ability of an entity to behave in...


Serialization in Java
Serialization is the process of converting Java objects into a stream of bytes. The stream of bytes can be transmitted through a network connection, stored in a database as a BLOB object or saved as a binary file. The stored or...


Java 7:
Try With Resources
Closing resources is an important best practice in all the languages, but most of the times it is forgotten by developers or implemented inappropriately. This article explains the actual purpose of closing resources and...


Java 8:
Default Methods
Default methods is one of the new features introduced in Java 8 which allows the developers to create methods in an interface with a body. The actual purpose of default methods as defined in Oracle documentation is:"Default...

Lambda Expression
Lets start this article with a familiared Java code which is used to create a new Thread using Runnable interface. Based on the requirements you might prefer either to create a separate class which implements...

Static Methods in Interface
Up to Java 1.7 version, all the methods declared in interfaces are public and abstract by default. Since Java 1.8, an interface can have default methods and static methods as well. Therefore, the updated rule is: An interface can...

Contact Form

Name

Email *

Message *