
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 9174 Articles for Object Oriented Programming

3K+ Views
An Array is a collection of certain elements that can be anything which takes up the adjacent memory locations. Here we store multiple elements of the same type together. An ArrayList is a class that is resizable unlike the in-built Array. An essential concept to comprehend involves recognizing how an ArrayList separates itself from a typical Array since only the former allows modifications through adding or deleting its elements. Importantly, one can easily access numerous variations of highly-functionalized ArrayLists through the java.util package capable of performing diverse operations. In this particular article we will demonstrate different approaches to join two ... Read More

662 Views
An ArrayList is a dynamic list of objects and you can't store primitive values like int, double, char or long in an ArrayList. The creation of wrapped class in java allows for holding of primitive data types and each object belonging to these types holds a single value for its respective primitive data type (int, double short or byte).To work with primitive data types in Java structures like JLists or ArrayLists which require objects, we need to use wrappers, and this article explains how to use ArrayList to store simple data types such as int and char. Primitive Data types ... Read More

653 Views
Pattern class is represented as a compiled version of the regex pattern. The pattern class is provided in java.util.regex package. This class has various methods for various operations like matching, splitting, searching, etc. In order to create a pattern object a compile method is used. Syntax public static Pattern compile(String regex) Here regex represents a regular expression which is a String. And to compile this we use this method. Moreover, this compiled object can be used to match a pattern using the Matcher method. Algorithm To compile and match a pattern, follow the steps below − Step 1 ... Read More

4K+ Views
Sun Microsystems initially introduced Java, a programming language and computing platform, in 1995. It has grown from its modest origins to power a significant portion of the digital world of today by offering the solid foundation upon which numerous services and applications are developed. Java is still used in cutting-edge goods and digital services that are being developed for the future. What is Asynchronous and Synchronous in Java? Java's asynchronous programming paradigm enables teams to distribute workload and develop application features apart from the main application thread. The code is then synchronised with the main thread when the team is ... Read More

515 Views
The act of instantiating an object calls forth its corresponding constructor underpinning much of the functionality present in object-oriented programming. Notably, a default constructor invariably exists within any given program employing objects - created seamlessly by the compiler for effortless utilization. In this discourse, we shall delve into constructor overloading with a static block in Java. Constructor overloading is a concept of defining multiple constructors with different parameters in a class. Syntax Public class class_name { Class_name() { } Class_name(par1, par2..) { } } Using a constructor ... Read More

622 Views
Whenever we declare a class we need to provide its access level so that JVM can know whether inheritance or instantiation can happen in the program and what is the scope of the class. For this we use access modifiers and these can be used with class, methods and variables etc.. Private access modifier restricts the method or variable access to the class only; that means the method or variable can be accessed within the same class only. Protected access modifier allows access to the class and any subclass of that class, including classes in other packages. Final access ... Read More

1K+ Views
A software design pattern that is frequently used in Java programming to maximize the utilization of objects is called the Object Pool Design Pattern. The pattern controls how items are created and destroyed in a pool. The management of object production and destruction is done using the Object Pool Design Pattern. The concept behind the pattern is to accumulate reusable objects rather than making new ones each time one is required. For circumstances when the cost of producing new objects is significant, such as in network connections, database connections, or costly objects, Java programmers frequently employ the Object Pool Design ... Read More

200 Views
In order to ensure that requests are properly handled, developers often use filters to prepare, and post-process them. These objects can perform all sorts of useful operations such as input validation, conversion, logging, compression, encryption, and decryption. What's particularly great about servlet filters is how easy they are to manipulate: as pluggable entities defined by the web.xml file, removing or adjusting filters is as simple as deleting an entry from the code base. This streamlined process means lower costs for maintenance. Usage of Filter The validation of data becomes critical when it holds inherent importance in business operations. It ... Read More

284 Views
Let's start by talking about the need for migration. Accordingly, from January 2019, enterprises will have to buy commercial licenses (i.e, from Oracle) to obtain software upgrades, as oracle declared in the year 2018. maintain oracle java, update to the most recent patch level, and pay the membership fees. You may get a sense of the price by knowing that each server core needs to be licensed, and each core costs US $25 per month. Additionally, even if there is only one Java Server in the cluster, the license price would apply to all "cores" of the server if it ... Read More

928 Views
Regex stands for Regular Expression. A pattern may be defined using regex as an API to search or modify the Text. It is frequently employed to specify string constraints, including passwords, and email validation. Once you understand this term, you might use regex to evaluate your regular expressions. Java Regex provides three classes and one interface in java.util.regex package namely, MatchResult Interface, Matcher class, Pattern class, PatternSyntaxException class. The Java regex feature is offered via the matcher and pattern classes. Meta Characters in Java Regex Meta Characters in Java Regex works as a short code for common matching patterns. ... Read More