
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 9194 Articles for Object Oriented Programming

2K+ Views
Spring is a highly popular framework within the Java EE ecosystem. It is an open-source and lightweight framework that empowers Java developers to build reliable, scalable, and simplified business applications. The primary goal of this framework is to offer you a variety of tools for managing your business items. In contrast to conventional Java frameworks and APIs such as JSP, JDBC and Java Servlet, developing web applications is far simpler. In Spring, objects—primarily those controlled by the Spring IoC Container. It plays a significant role in the application. A Bean is nothing more than an object that a Spring Ioc ... Read More

195 Views
Java programmers may create, edit, and display MS Office files using the widely used Apache POI API. Through its classes and methods, this open-source library developed by the Apache Software Foundation provides a variety of functions for turning user input data or files into Microsoft Office documents. Apache POI's versatility and reliability have made it a popular option among developers worldwide. Its broad capability and smooth integration make it an invaluable asset for any project needing MS Office file handling. The API's continuous updates and active community guarantee that it is always up to date with the newest file format ... Read More

1K+ Views
In Java, a class is a fundamental component of object-oriented programming. It serves as a blueprint or template for defining the structure and behavior of objects. A class contains both data, represented by fields or variables, and behaviors, represented by methods or functions, which manipulate that data. In Java, a custom class is a user-defined class that allows you to create objects with specific properties and behaviors tailored to your application's requirements. It serves as a blueprint or template for creating objects of that class type. Custom classes encapsulate related data and operations into a single entity, promoting code organization, ... Read More

279 Views
The Spring Boot framework incorporates all of Spring's capabilities and features because it is built upon the basis of Spring. Developers are drawn to it because of its effective production-ready environment, which frees them up to focus on the logic of the application rather than on setup and configuration. Microservices-based applications that are suitable for deployment in a production environment may be created quickly thanks to Spring Boot. Some of the key features of Spring Boot are − Auto-configuration − Spring Boot's standout feature is its auto-configuration capability. It analyzes the project's classpath and automatically configures the necessary beans ... Read More

1K+ Views
The Spring Boot framework incorporates all of Spring's capabilities and features because it is built upon the basis of Spring. Developers are drawn to it because of its effective production-ready environment, which frees them up to focus on the logic of the application rather than on setup and configuration. Microservices-based applications that are suitable for deployment in a production environment may be created quickly thanks to Spring Boot. Some of the key features of Spring Boot are − Auto-configuration − Spring Boot's standout feature is its auto-configuration capability. It analyzes the project's classpath and automatically configures the necessary beans ... Read More

300 Views
Program in Text and XML Format? In Java, a project's properties file is made up of text-based key-value pairs that are commonly stored with the .properties extension. The key-value pair of contents are presented line by line, and they are often created using notepad, Wordpad, etc. Properties files serve as valuable repositories for storing critical and confidential data. In this article, we will explore the process of creating a properties file using a Java program. The Properties class in this (java.util.Properties) package offers multiple utility store methods that facilitate the storage of properties in either Text Format or XML ... Read More

2K+ Views
In this article, we will learn how to create a TreeMap in reverse order in java. Firstly, we need to know about TreeMap. A TreeMap in Java is a class that implements the SortedMap interface, which extends the Map interface. It is a collection that stores key-value pairs and organizes them based on their natural order or a custom Comparator provided during its creation. This approach provides efficient performance for common operations such as adding, removing, and retrieving elements from the TreeMap. It has an average time complexity of O(log n), which ensures efficient execution. Syntax for Creating a TreeMap ... Read More

867 Views
In this article, we will see what are the possibilities available to create thread-safe HashSet instances and see what will be equivalent to ConcurrentHashMap for HashSet. We will also look at the benefits and drawbacks of each approach. Before JDK8 we are not able to create a Thread Safe ConcurrentHashMap because java.util.concurrent package in JDK8 does not provide a class named ConcurrentHashSet, two new methods were added that are discussed below. ConcurrentHashMap is the Map implementation that allows us to modify the Map while iterating. The ConcurrentHashMap operations are thread-safe. ConcurrentHashMap doesn't allow null for keys and values. Ways to ... Read More

218 Views
In this problem, we will rotate the array by K left rotations and find the Mth element in the rotated array. The naïve approach to solve the problem is to rotate the array by K left rotation and take the element from the M – 1 index. The optimized approach is to find the final index value in such a way that the final index is the M – 1 index of the rotated array. Problem Statement We have given a nums[] array containing the positive integers. We have also given the positive integer K and M. We need ... Read More

305 Views
Introduction The Object class contains a definition for the notify () method. Only one thread that is waiting for an item is wakes up by it and that thread then starts to run. A single thread can be awakened using the notify () method of the thread class. When using the notify () method while several threads are waiting for a notice, only one thread will actually get the notification and forces the others to continue waiting. Let us discuss the Java notify () method in Threads Synchronization, along with its usage and programming examples. We will look into how ... Read More