![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
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 9326 Articles for Object Oriented Programming
![Way2Class](https://www.tutorialspoint.com/assets/profiles/682997/profile/60_3626763-1689653460.jpg)
1K+ Views
PDFMergerUtility class is used for merging multiple PDF documents into a single PDF document. PDFMergerUtility class will take a number of PDF files and merge them, and save the result as a new document. To merge PDFs using java will require the installation of apache library. There may be different approches to merge PDF files using java. Definition: Merging PDFs using java Example Input − PDF1 = Alice.pdf, PDF2 = Bob.pdf Output − newMerged.pdf // merged pdf of pdf1 and pdf2 Program code// Merging two pdf documents here import org.apache.pdfbox.multipdf.PDFMergerUtility; import org.apache.pdfbox.pdmodel.PDDocument; import java.io.File; ... Read More
![Way2Class](https://www.tutorialspoint.com/assets/profiles/682997/profile/60_3626763-1689653460.jpg)
717 Views
Cryptography is the study and practice of different techniques to secure communication from third party. It is used for cyber security. We try to develop approaches and practices for protecting sensitive data. The sole objective of cryptography is to secure data from the attacker. Asymmetric Encryption is also referred as public/private key. Private key as goes as its name, it will be private while the public key can be distributed. Encryption is a mathematical correlation between two keys, one for encryption and the other for decryption. For example, if there are two keys “A1” and “A2”, then if key “A1” ... Read More
![Way2Class](https://www.tutorialspoint.com/assets/profiles/682997/profile/60_3626763-1689653460.jpg)
798 Views
Anagram Strings are those strings that have the same characters in each of the strings only the order in which they are arranged changes. In other words, a string is an anagram string if it forms a meaningful word after rearranging the characters of the other string. Some examples of anagram strings are “cat and act”, “care and race”. Both of them have the same characters and their frequencies. In this article, we will be discussing the approach to check whether the two strings are anagrams of each other or not using the HashMaps in Java. Problem Statement ... Read More
![Way2Class](https://www.tutorialspoint.com/assets/profiles/682997/profile/60_3626763-1689653460.jpg)
285 Views
Julia and Java Julia is a dynamic programming language whereas Java is an object-oriented programming language. Julia contains user-friendly syntax and Java is a purpose programming language. Both Julia and Java are programming languages used to create different types of applications. Both offer different types of features to make coding easy. Julia enables work for parallel and distributed computing. Java does not run to improper method addresses. Java allows the collection of garbage. Julia defeats Java in syntax, speed and applications. Therefore, we will cover the main difference between these two extensively used programming languages in this article. What ... Read More
![Way2Class](https://www.tutorialspoint.com/assets/profiles/682997/profile/60_3626763-1689653460.jpg)
314 Views
JRE stands for Java Runtime Environment. It is mainly a part of the Java Development Kit (JDK). It is free of cost so we can easily find it on any software to use in our program. It consists of a Java class library, specific tools and many more important tools. JRE can be implemented on any operating system and it works as an outer layer of the operating system. It also consists of Integration Libraries and base libraries such as Java Database Connectivity (JDBC), Java Naming and Directory Interface (JNDI), Java Management Extension (JMX), Java Native Interface (JNI), Java for ... Read More
![Way2Class](https://www.tutorialspoint.com/assets/profiles/682997/profile/60_3626763-1689653460.jpg)
95 Views
JAVA is a robust, portable and highly secured programming language created by James Gosling at a company named Sun Microsystems, Inc. in 1991. The official name of this is OAK, Sun Microsystems renamed it JAVA in 1995. This company was taken over by Oracle Corporation. It is an all-purpose programming language and it is also an object-oriented programming language. JAVA is a widely used programming language in modern days. It contains various safeguards intended to prevent crashes at the time of program running such as Collection of garbage- no invalid addresses, checking of array and string boundaries, there is no ... Read More
![Way2Class](https://www.tutorialspoint.com/assets/profiles/682997/profile/60_3626763-1689653460.jpg)
862 Views
Mockito is built for testing the unit, whereas Wiremock is built specifically for the integration testing. Mockito aids itself as “a mocking framework that tastes really great” whereas wiremock stimulates itself as “a simulator for HTTP-based APIs”. Both wiremock and mockito are the technologies used for testing that is widely used for unit and integration testing in natural world applications. Developers have to understand these two important terms and how they differ from each other to use them in an effective way. Therefore, we will cover the main difference between these two extensively used tools in this article. What ... Read More
![Neetika Khandelwal](https://www.tutorialspoint.com/assets/profiles/507566/profile/60_4169811-1661487212.jpg)
67 Views
The task is to build an application which displays an expression and prompts for the answer. Once you enter the solution a new expression is displayed and these expressions keep on changing. After a certain amout of time the solution given for the respective application were evaluated and the total number of accurate answers were displayed. Methods (User defined) in the Game The section will walk you through the methods (and constructor) that are part of the implementation and their roles in the “Calculate Expression Game”. CalculateExpressionGame() This is the constructor of the calculateExpressionGame class. It sets up the ... Read More
![Neetika Khandelwal](https://www.tutorialspoint.com/assets/profiles/507566/profile/60_4169811-1661487212.jpg)
292 Views
When it comes to searching for elements in a collection, Java provides different options depending on the data structure you're using. Two popular methods for searching in a list are binary search and the contains() method. In this blog post, we'll compare the performance of binary search and contains in a Java list, highlighting their differences, strengths, and best use cases. Binary Search Binary search is an efficient way for locating a specific member in a sorted list. The search space is divided in half on a regular basis until the target element is found or the search space is ... Read More
![Neetika Khandelwal](https://www.tutorialspoint.com/assets/profiles/507566/profile/60_4169811-1661487212.jpg)
2K+ Views
Java is a well−known programming language that is used to create a variety of applications. The user experience could be harmed by performance issues that can be caused by poorly optimized Java code. In this blog post, you will come across 12 techniques for improving the performance of Java programming. Techniques to Optimize Java Code Use Efficient Data Structures The choice of a suitable data structure has a significant impact on the effectiveness and speed of Java programming. For instance, choosing a LinkedList over an ArrayList can be advantageous if you frequently add or delete entries from a list because ... Read More