Access Modifiers in Java.
The access modifiers in Java helps to restrict the scope of a class, constructor, variable, method, or data member. There are four types of access modifiers in java. Default Private Protected Public 1.Default access modifier When we don’t use any access modifier for a class, method, or data member, it is …. Read More
Object Oriented Programming (OOPs) Concept in Java.
Introduction Object-Oriented Programming (OOPs) is the concept of objects based programming, that contains data(fields) and its behavior (method), in a single location(object). So the reason for using object-oriented programming is to increase the flexibility and maintainability of programs. That’s why in object-oriented programming language everything is represented as an object. The main aim of Object-oriented …. Read More
Encapsulation in Java with Examples
Introduction Encapsulation is an OOPS concept. It is a process of wrapping the data (variables) and code together into a single unit. It is a concept of hiding data in a class, from other classes using data hiding. That’s why it is also known as data hiding. What is Encapsulation? It is …. Read More
Inheritance in java
What is Inheritance in java? Inheritance is an important part of Object-Oriented Programming (OOP) languages. Inheritance is a mechanism where one class acquires all the properties and behaviors (methods and fields) of another class is called Inheritance. We use extends Keyword to inherit the properties of one class to another class. Using the extends keyword, …. Read More
Interface Class in Java.
What is the interface in java? Interface in java is one of OOP’s concepts. The interface in java is a mechanism to achieve 100% abstraction. The interface provides achieve 100% abstraction because it uses only abstract methods (not method body). An interface can be used only abstract methods (without body), before java 8. After java …. Read More
Abstract Class and Abstraction in Java.
In this article, we are going to discuss Abstract Class and Abstraction in Java and method, Abstract class and Abstract class. We are going to discuss the abstract class. Before learning the Java abstract class, we are going to discuss the Abstraction and Abstract method. What is Abstraction in Java? Abstraction is a process of …. Read More
Polymorphism in Java
In this article, we are going to discuss one of the most powerful features of OOPs concepts Polymorphism, and we will also discuss their types and features with programming examples. What is Polymorphism in java? Polymorphism is one of the OOPs features, it allows us to perform a single action in different …. Read More
Class, Object and Method in Java.
We are going to discuss classes and objects, when you talk about Java then class and object are a very important part of Java. Class and object are concepts of oops. we are going to discuss what is class and object, what are used, and where we use them. Object and Class in java is …. Read More
Common Java interviewing questions
In this article, we are going to discuss the top 10 very important programming interviewing questions which are almost all interviews are asking by the interviewer. 1. Check Number is Prime number or not. These are very important interviewing questions that are asking at both fresher level and experience level. 2. Reverse number …. Read More
Top 5 string programming interview questions in java
In this article, we are going to discuss very important programming interview questions for interviews these programming questions are asking in the written round and sometimes at a time of technical round by the interviewer. 1. Find Duplicate Characters and count duplicate characters from a string In this programming interview questions, we need …. Read More