
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 7442 Articles for Java

427 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

1K+ 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

3K+ Views
There are two methods for creating systems of computers with multiple processors or processor cores: multiprocessor organization and multicore organization. Both strategies aim to boost a computer's processing power by enabling it to handle several tasks at once. Several separate processors linked by a communication network make up a multiprocessor system in most cases. Each processor can carry out a unique set of instructions and has a separate local memory. The throughput of the entire system can be increased by these processors working on several tasks concurrently. In this article, we will explore Multiprocessor and Multicore Organization, their use cases, ... Read More

1K+ Views
A thread in computer programming is a brief sequence of instructions that are intended to be scheduled and carried out by the CPU apart from the parent process. Multiple threads may be active at once in a program, which closes or suspends them when the task is finished, or the application is closed. A multithreading CPU has the capacity to run many threads simultaneously. The following are the differences between OS threads and java threads. Threads in Java In Java, a thread is the course or path followed while a program is being run. All programs typically have at least ... Read More

137 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

640 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

4K+ 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

2K+ Views
Programming is all about coming up with the best and most efficient ways to solve the real−world problems. There are situations when you want to exit multiple loops simultaneously. This can be accomplished in Java by simply referencing the name of the loop you want to exit. In this tutorial, we'll look at how to break any outer nested loop in Java by referencing its name. Referencing Loop Names in Java You can break out of the Java nested loop by labelling the outer loop. This can be accomplished by using a label before the outer loop followed by a ... Read More

2K+ Views
In Java, substrings are part of the string which contains the continuous character of the string of any length from 1 to complete string. We are given a string and we have to find the length of the largest substring from the given string that only contains the unique characters. We will see three types of methods: finding every substring, sliding windows, and two-pointers. Problem Statement Given a string, write a Java program to find length of the longest substring without repeating characters − Input thisisthegivenstring Output The length of the longest substring that contains only unique characters is: ... Read More

859 Views
The atoi() function is used in C programming language and used to convert the string which is passed as the parameter to it into an integer value if the string is a valid integer otherwise it shows the undefined behavior. We will implement the atoi() function in the Java programming language. Example Scenario 1: Input: string str = "123" Output: res = 123 We are given a string that represents a number so we have just got the same output. Example Scenario 2: Input: string str = "897c7" Output: res = Invalid Input The given string ... Read More