Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Object Oriented Programming Articles
Page 274 of 588
Time and Space Complexity Analysis of Queue operations
Introduction Queue is a linear data structure that uses the FIFO approach for inserting and removing its elements. It can be implemented by using arrays and linked lists. In this tutorial, we will analyze the time and space complexity of array based queue for its different operation. Queue Implementation Using Array The principle of Queue is its FIFO approach and it states that the element that enters first in the Queue will be the first to be removed from it. Its elements are inserted at the Rear end. Queue elements are removed from the Front end. The real-life example of ...
Read MoreShould we declare it as Queue or Priority Queue while using Priority Queue in Java?
Introduction The queue is a linear data structure that follows the FIFO approach to insert and extract its data. A priority Queue is a structured Queue, where all data have some priorities for their processing. In Java, a queue or priority queue is an interface. In this tutorial, we will examine whether we should declare a queue or priority queue as a Priority Queue in Java. Queue A Queue in Java is an interface and that interface belongs to java.util package. The queue interface extends the Collection Interface and this interface has several methods. Queue uses FIFO (First In First ...
Read MoreHow to implement size-limited Queue that holds last N elements in Java?
Introduction A queue is an interface in Java. It is used to insert elements at one end and remove them from another end. It uses the FIFO principle for its processing. The queue extends the Collection framework and is defined in the Java.util interface. In this tutorial, we will understand the implementation of size limited queue in Java. What is Size Limited Queue in Java? A size-limited queue is a queue with a fixed size of N. It cannot hold elements more than its size. If you try to push more data, it will remove elements from its front ...
Read MoreGet requests using AJAX by making a Custom HTTP library
We will learn to make a get request using the AJAX by making the custom HTTP library. Let’s learn about the Get request and AJAX before we start with the tutorial. The Get request is used to get or fetch data from the API (Application programming interface). The AJAX stands for Asynchronous JavaScript and XML. The AJAX allows us to load or update new data without reloading the webpage. For example, if you have ever worked with ReactJs, it updates the data without reloading the webpage. If we reload the webpage whenever data updates, it can give a bad user ...
Read MoreBit Stuffing error detection technique using Java
Bit stuffing is a technique used in data communication systems to detect and correct errors that may occur during the transmission of data. It works by adding extra bits to the data being transmitted in order to flag when an error has occurred. One common way to implement bit stuffing in Java is to use a flag byte (such as 0x7E) to indicate the start and end of a frame, and to use a special escape byte (such as 0x7D) to indicate that the next byte is a stuffed bit. For example, the sender would add a stuffed bit before ...
Read MoreHow to cancel XMLHttpRequest in AJAX?
We will use the "abort()" method to cancel the XMLHttpRequest. This will stop the current request from continuing to execute. In the future, we will make sure to properly cancel any requests that are no longer needed to optimize performance. Let us first understand what XML HttpRequest is. XMLHttpRequest is a JavaScript object that allows web developers to make HTTP requests to a server without reloading the entire page. It is often used for creating dynamic and interactive web applications. The API can be used to retrieve data in different formats such as text, XML, and JSON. XMLHttpRequest is supported ...
Read MoreWhy Spring Boot the King of Java Frameworks?
Java developers have a wide array of frameworks to choose from when building web applications, but one stands out above the rest: Spring Boot. This framework has become increasingly popular in recent years due to its ease of use, flexibility, and powerful features. Unleashing the Magic of Spring Boot in Development! As a developer, it's easy to feel bogged down by the monotony of repetitive tasks and endless configurations. But with Spring Boot, gone are the days of tedious setup and overwhelming decisions. This revolutionary framework takes the hassle out of development, allowing you to focus on the exciting parts ...
Read MoreImportance of Proper Exception Handling in Java
Java is a widely-used programming language, & as such, it is necessary to understand the importance of proper exception handling to develop robust and efficient code. Exception handling is a mechanism used to handle errors and unexpected conditions in a program, and it is essential for maintaining the integrity and stability of a Java application. Proper exception handling is a critical component of Java programming that helps developers to anticipate and recover from errors and unexpected conditions in a program. It is an essential aspect of maintaining the integrity & stability of a Java application. This is why it is ...
Read MoreWhy will Java Dominate Software Development Still in 2023?
Java is an old programming language which is still in demand, in other words it will dominate software development in 2023 again. Would you like to know why Java will dominate software development in 2023? Before going to why Java will dominate software development, let’s have a look to the Java use cases that will give you an in -depth understanding of uses of the language. Web-based Apps Video games Desktop applications Big data Internet of Things Mobile applications and more. This blog is just for you, So, let’s have a look at those major factors which will ...
Read MoreWhy is Java so Popular for Creating Enterprise Software?
Java is a popular programming language for creating enterprise software, because of some reasons. Would you like to know what those factors are? Here is a short guide for you. Java's own run-time environment, the Java Virtual Machine (JVM), grew in popularity each year from its inception. Java is currently an essential component of both large enterprise-wide solutions and small applications. Furthermore, Java's power has increased with each update, in contrast to other programming languages whose roles have grown over time. Java is still one of the most widely used application programming languages, as indicated by the TIOBE index. According ...
Read More