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

296 Views
Stacks are basic data structures that follow the Last in First Out principle also termed as LIFO. A stack has many use cases like organizing function calls and undoing actions. Often one might encounter a problem locating the biggest and smallest elements inside a stack, this article will demonstrate multiple methods to accomplish this task using Java. Understanding Stacks A stack is a linear data structure that allows operations at only one end, known as the top. The primary operations include: Push: Adding an element to the top of the stack. ... Read More

164 Views
Gradle is a tool which is used in Java development. One of its main jobs is to create automation tools. Maven is used as an alternative to Gradle but it is older and helps in building the tools which are best for a project. Developers can make a choice between them on the basis of their requirements for a project. In this article, we will discuss the difference between Gradle and Maven. What is Gradle? Gradle is an open-source automation system which uses domain-specific language called Groovy. This is a programming language that uses XML for the configuration of a ... Read More

968 Views
Stream was introduced in Java 8 and it was included as java.util.stream package. It is a sequence of objects which acts as an array or a collection. Different types of methods are supported by stream. Besides this, stream also supports different kinds of aggregate operations which include − Filter Map Reduce Limit Match Find The source is not affected when any of these operations are performed on a stream. Instead of this, a new stream is created to apply these operations. There are two types of streams which are sequential and parallel. In this article, we will discuss ... Read More

5K+ Views
Java has a java.util package that consists of a Collection interface. This interface has many sub-interfaces and classes like List, Set, and Map. In this article, we will learn the difference between List, Set, and Map. What is List Interface? Java has a Collection interface and List is the sub-interface of Collection. This interface consists of methods like insert, update, delete, and search. Developers are also allowed to insert null elements. List Interface Example The List interface can be found in the java.util package. An example of a List is given below − import java.util.*; public class ListExample { ... Read More

918 Views
In a Java environment, every variable contains with some data types, which specify the value and type of a sorted identifier. There are two categories − Primitive Data type Non-Primitive Data type or Object data type The primitive data types are some predefined data types with some specific size and type. This method has some standard values with the types know as byte, short, int, long, float, double, char and boolean. When we want to run a primitive structure, then it stores the data in a stack and assign a value for the process. On the other hand, ... Read More

5K+ Views
The file class is a representation of directory path name in Java with different formats on different platforms. The file class contains the method of different path name which is responsible for deleting and renaming files by using the new directories. It is an abstract class in a string formation which can be either absolute or relative. Algorithm to of Convert Byte[ ] Array to File In this possible algorithm, we are going to show you how to perform a conversion process on a byte() array node to make it a file. By using this algorithm, we are going to ... Read More

1K+ Views
The LinkedHashMap Class is an one type of Hash Map which enables an user to maintain a systematic cronology of the elements present into it. This feature also provides the method of insertion, search and deletion in a quick manner. When we need to convert an array list to a linked hash map, we need to set a key value for this and it reflects as the index of an array list. In terms of the process of the iteration and the data sorting, array list and linked hash map; both are same in nature. Here is a general example ... Read More

4K+ Views
In Java the List is a child interface class which can also represents a Collection set. It is an ordered collection set, consists of the objects where duplicate values can be sorted also. Java array list is a collection framework as it presents into the java.util package and provides the dyanamic array elements in Java. For the ArrayList we do not have to mention the size of the list. On the other hand, the HashMap is a Java collection which can be found as a package in java.util. It contains the data values as a pair of (Key, Value).Basically, there ... Read More

254 Views
Containerization is a Java embedded process, which is able to pack the Java service or an application within a software container class. It includes every component which needs to execute the process within the packet. Containerized Java applications have lots of benefits with − Granullar stability − It makes the content more stable and easily scale up the value of the content. Flexibility − It develops the flexibility to enhance the experiment process. Resilience − Helps to avoid the cascading failure of an application. Cost − As the process is the embedded one, so the cost is low. ... Read More

276 Views
If any particular method encountered the concurrent in a multi threaded Java environment during the resource detection then the ConcurrentModificationException might be thrown. In this process the object is a non permissible unit here. Here is an example related to the ConcurrentModificationException in Java − Exception in thread "main" java.util.ConcurrentModificationException at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:000) at java.base/java.util.ArrayList$Itr.next(ArrayList.java:000) atcom.journaldev.ConcurrentModificationException.ConcurrentModificationExceptio nExample.main(ConcurrentModificationExceptionExample.java:00) For this particular process the exception is achieveable when − The exception detected and iteration is in not defined in the method. When the process blocked in a loop of fail fast iterator by using an internal flag called modCount. ... Read More