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
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Java program to print X star pattern
In this article, we will understand how to print X star pattern using Java. The pattern is formed by using multiple for-loops and print statements. The pattern forms the shape of the letter "X" by printing stars ('X') and spaces in specific positions. The user can provide a number as input, which will determine the size of the pattern. The program uses nested loops to create the required star pattern, where stars are placed at the diagonal positions of a grid. Problem Statement Write a program in Java to print X star pattern. Below is a demonstration of the same: ...
Read MoreJava program to generate random number with restrictions
In this article, we will learn to generate random numbers with restrictions in Java. We will be using the Java Random class from java.util package. Random class Random class is imported from java.util package. The instance of this class is used to generate the random numbers and provides different numbers of different types integer, double, long, float, etc. Steps to generate random numbers with restrictions Following are the steps to generate random numbers with restrictions − Import the Random class from the java.util package. Initialize the Random object to generate random values. ...
Read MoreJava program to set minimum and maximum heap size
The Java heap is a particular memory area which is used to store the objects and represent them as or by an instance in Java Virtual Machine. The Java heap can be shared between two threads as long as the environment is occupied by some running applications. The heaps are sorted in a stack memory and follow the Last In First Out (LIFO) method after the creation of an object in JVM. When the size of the heap memory is compared to the stack, the spare objects are cleared by the GarbageCollector automatically. The heap memory is divided into three ...
Read MoreSemantic Web - Definition, Applications, and Benefits
What is semantic web? Semantic web is a framework which can be used to share data directly over the web. There is no need to share any documents. The aim of semantic web is to provide the required information to users. It is a knowledge graph which is a combination of linked data and intelligent content which helps the machines to understand and generate the content on the basis of metadata, processing of content, etc. How does Semantic Web work? Semantic web works on the basis of two data types which are − Linked Open Data Semantic Metadata ...
Read MoreWhat is the Industrial Internet of Things (IIoT)?
Industry uses computers, such as production and power management. This integrates with embedded devices, gauges, and other equipment in the IIoT. The ability to gather, trade, and analyze data is possible through networking. This may also affect the economy. The IIoT is an improvement on a distributed control system (DCS). It enables more mechanization by streamlining and enhancing process capability by utilizing cloud computing. Industrial Internet of Things (IIoT)- What Is It? IIoT entails creating and deploying the Internet of things (IoT). It is in engineering settings and domains. The IIoT helps businesses and industries. You can operate more with ...
Read MoreCarbon Capture and Storage - What it is, Applications and Examples
What is Carbon Capture and Storage (CCS)? Carbon capture and storage is a technology which is being used to store carbon dioxide so that the gas is not released into the atmosphere. This method helps in tackling global warming. Three steps are used in this process which include − Capturing the CO2 emitted from any source Transporting the gas Storing it underground Capturing and storing CO2 is necessary so that global warming can be controlled. How does CCS work? Three steps are involved in the working of carbon capture and storage and these steps are discussed here in ...
Read MoreMobile Payment - What is it, Types & How to Use Them?
What is Mobile Payment? Mobile payment is a type of payment which customers use to pay money when they go to purchase products or services. The devices that customers use for making payments are tablets and smartphones. There are many payment apps which can be installed on the mobile. Many banks have also adopted mobile payment technology and have launched many banking apps which customers can use to send and receive money. Types of Mobile Payment Mobile payment is of different types and we will discuss them in detail − 1. Mobile Wallets Mobile wallets are digital apps which can ...
Read MoreGreen Hydrogen - What it is, Applications and Examples
What is Green Hydrogen? Green hydrogen is a fuel which can be obtained with the help of electrolysis. The water is electrolyzed with the help of renewable energy sources like wind, or solar power. The aim behind producing green hydrogen is to use it as a fuel. This will help in limiting global warming to 1.5 degrees centigrade. The production of green hydrogen is expensive but will come down in the future. Types of Hydrogen Hydrogen is of many types and we will discuss them here in detail − 1. Green Hydrogen Green hydrogen can be made by electrolyzing water ...
Read MoreHow To Reset Identity Column Values In SQL
What is an Identity Column? The Identity column of a table is a column whose value increments consequently. This can be used to create unique identifiers, such as primary keys. Syntax Following is the syntax to create an Identity column. The initial setting for identity is represented as IDENTITY (1, 1). IDENTITY [ ( seed , increment ) ] Where − Seed: The seed determines the initial value of an ID, with a default setting of 1. Increment: This denotes the step value for ID increments, which also defaults ...
Read MoreDifference Between CGI and Servlet
In this article, we will understand the difference between CGI and servlet. Servlet is a Java class that helps servers to extend their abilities by hosting applications accessed using a request-response model. CGI behaves like middleware between www servers and external databases or information resources, helping pass data between the server and application. Difference between CGI and Servlet Some of the common differences between CGI and Servlet are as follows. S.NO ...
Read More