We’ll learn how to write our first Java program throughout this post. This article is only for java beginners. hello world program will be a very simple program that will…
Java is one of the most used programming languages in the world for developing desktop application and web application. What is JAVA? Java is a platform independent, object oriented programming…
Serialization Serialization allows to convert an object to a stream, for sending that object over the network OR Save to file OR save into DB for letter usage. serialVersionUID It is…
Hi, This is a common problem when you want to run a java program using the command line. The problem is occurring for so many reasons. Most of the cause…
NullPointException NullPointException is a RunTimeException. NullPointException is thrown when the value of a reference variable or object is null. How to avoid NullPointException? Before using any object or reference variable,…
IOException In Java, IOException is one of the most common Exceptions when the program operates between input and output.IOException is used for input and output-related operations. Sometimes it’s called Input-Output Exception. Whatever the reason…
Exception Handling in Java is a powerful mechanism. Exception handling is done to handle the run time error of the program and to maintain normal flow. The exception refers to an abnormal…
Binding (or wrapping) code and data together into a single unit are known as encapsulation. For example, a capsule is wrapped with different medicines. Java Encapsulation reduces the code redundancy…
Hiding internal details and showing functionality is known as abstraction. For example phone call, we don't know the internal processing. The user will have the information on what the object…
If one task is performed in different ways, it is known as polymorphism. For example: to convince the customer differently, to draw something, for example, shape, triangle, rectangle, etc. In…
We will one of the most important concept of JAVA OOP is java inheritance. When one object acquires all the properties and behaviors of a parent object, it is known…
In this article, we will learn about objects and classes with real-life examples. Java objects and classes are the main components of JAVA. Object Everything in Java is associated with…
Hello guys! In this tutorial, we have figure out the getters and setters method and their features in Java. We will learn accessor and mutator in the Java programming language.…
Today, we will learn the fundamentals of Object Oriented programming programming. First of all, we have to know the meaning of Object and then we go through the others part.…
We will build a number guessing game to generate a random number. In the last episode, I discussed Java objects and classes. To understand objects and classes, We will create a funny game name…