- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 9776 Articles for Object Oriented Programming

Updated on 15-May-2023 15:11:05
Understanding how arrays work is fundamental for any developer, and Java is no exception. Arrays in Java are objects that store multiple variables of the same type. However, arrays can often be used in more complex ways. One such instance is when you need to figure out if the sum of an array, considering only even numbers at odd indices and odd numbers at even indices, is divisible by the size of the array. In this article, we will guide you step-by-step on how to solve this problem. Problem Statement Given an array of integers, write a function in Java ... Read More 
Updated on 15-May-2023 17:35:08
Determining the size of a file on the Internet seems a little tricky, but it is a quite simple and easy task. Java provides some built-in features that can be used for the given task. In this article, we will discuss how to make a connection to the Internet and fetch the size of a given file. How to establish a Connection on Internet using Java URL The modern Internet is all about World Wide Web. Tim Berners-Lee invented a way to locate all the resources on Web and he named it Uniform Resource Locator. It provides the feature ... Read More 
Updated on 15-May-2023 17:29:39
Spring is the most famous Java Web Framework available nowadays. It serves to build web applications through Java programming language. To work with this framework one needs to have a strong background and understanding of Java. It is essential to protect our valuable data from unethical practices. In this article, we will walk through some important terms in Spring Security that helps us in protecting users’ data. We won’t go into a deep analysis of any terminology. Terms related to Spring Security The Spring Security is an open source security framework and serves as a comprehensive security solution for your ... Read More 
Updated on 16-May-2023 11:55:21
The Internet Protocol suite contains all sort of protocols that enables communication between devices over the Internet. UDP is one of the protocols of this suite and its full form is User Datagram Protocol. Unlike TCP, it is not reliable and also it is a connectionless protocol. It does not establish any kind of connection to other devices before sending the data. In this article, we will develop a simple client-server side calculator using UDP in Java. The client will request the operation and the server will send the result to client device after calculating it. Java Networking ... Read More 
Updated on 15-May-2023 17:26:02
The Internet Protocol suite contains all sort of protocols that enables communication between devices over the Internet. TCP is the most common protocol of this suite. It is a connection-oriented protocol, which means it maintains the established connection between two devices till the end of a communication. This is the reason it is used while web surfing, sending emails and transferring files. In this article, we will develop a simple client-server side calculator using TCP in Java. The client will request the operation and the server will send the result to client device after calculating it. Java Networking Let’s ... Read More 
Updated on 15-May-2023 17:23:36
Synchronization is a way that establishes cooperation between multiple threads trying to access shared resources. It is necessary for reliable thread interaction and is done using the ‘synchronized’ keyword. Here, threads are small sub processes of a big operation. In this article, we are going to learn static synchronization and how they manage threads so that they can work efficiently. Multithreading and Static Synchronization Multithreading It is a feature of Java programming language that allows us to perform multiple operations simultaneously. In it, the operation gets divided into multiple smaller parts called a thread. Each thread performs one independent ... Read More 
Updated on 15-May-2023 17:18:55
There are two types of collections in Java. One is ordered and the other one is unordered collection. The ordered collections store their elements in the order in which they are inserted i.e. it maintains the insertion order of elements. Whereas, the unordered collections such as Map and Set do not maintain any order. In this article, we will create an unordered collection and try to shuffle its elements using the inbuilt method ‘Collections.shuffle()’. Program to shuffle elements of Unordered Collection Set SortedSet Interface This interface has the term ‘Sorted’ in its name which signifies that it contains all ... Read More 
Updated on 15-May-2023 17:16:38
In Java, downcasting is the process of converting an object of parent class to object of child class. We need to perform the conversion explicitly. It is quite similar to what we do in primitive typecasting. In this article, we will learn about downcasting and what are the rules that we must follow to downcast an object in Java. Object Downcasting in Java Earlier we discussed that downcasting is somewhat similar to typecasting. However, there exist a few differences too. The first is that we can type cast only primitive datatypes and the second is that it is irreversible action ... Read More 
Updated on 15-May-2023 17:13:58
Vectors implement the List interface and are used to create dynamic arrays. The array whose size is not fixed and can grow as per our needs is called as a dynamic array. The vectors are very similar to ArrayList in terms of use and features. In this article, we will learn how we can create a vector and search for a particular element by its index in Java. Let’s discuss Vector first. Vector Although vector is similar to ArrayList in many ways, there exist some differences too. The Vector class is synchronized and several legacy methods are contained by it. ... Read More 
Updated on 15-May-2023 17:12:15
Array is a linear data structure that is used to store group of elements with similar datatypes. It stores data in a sequential manner. Once we create an array we can’t change its size i.e. it is of fixed length. In this article, we will create an array of triplet and try to sort them using the Comparable and Comparator interfaces. The term array of triplet means an array having three elements. Program to sort Array of Triplet using Comparator Comparator As the name suggests it is used to compare something. In Java, the Comparator is an interface that is ... Read More Advertisements