Vector and List are present in many programming languages like C++, R, etc. and they are used to add and remove elements. These elements can be accessed randomly in a vector but not in a list. In this article, we will discuss the difference between vector and list in C++. What is Vector in C++? A vector is a container which works as a dynamic array. It can be used to store elements whose datatype is same. Vectors also have a characteristic of growing or shrinking at runtime. Vectors belong to the Standard Template Library (STL) and header file ... Read More
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
Spring Annotations can be referred to as metadata which provides information related to a program. Supplemental information of a program can be derived from annotations. The annotation will not affect the program nor the action of the compiled program be changed. Spring annotations are of two types which are @Controller and @RestController. In this article, we will see the difference between @Controller and @RestController. What is @Control Annotation? Spring @Controller Annotation is responsible for informing that a particular class can behave in the form of a controller. The @Controller annotation and the annotated handler methods are used in combination with ... Read More
To change the color of the radio button using CSS, is a simple process that can be achieved using various approaches. In this article, we will learn and understand two different approach for changing the color of the radio button using CSS. Radio buttons allows to select one option out of many available options. In this article, we are having a radio button and our task is to change the color of radio button using CSS. Approaches to Change the Color of the Radio Button Here is a list of approaches to change the color of the radio button using ... Read More
In this article, we will be understanding How to create a signup form with HTML and CSS. A sign-up form allows any new user visiting the website to register. It includes adding an email-id, password, repeat password, and clicking on the Sign-Up button to register. To allow the browser to save the password, click the Remember Me. You can also provide a Terms & Policies link so the users can first read the registration terms. Let us see how to create a signup form with HTML and CSS. Steps to Create Sign Up Form We are following 2 steps to ... Read More
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
The factorial of a number is a fundamental concept in mathematics, representing the product of all positive integers up to that number. Calculating the factorial of a given number is a common problem in programming, and Java provides a straightforward way to achieve this using a while loop. A factorial of a particular number (n) is the product of all the numbers from 0 to n (including n) i.e. factorial of the number 5 will be 1*2*3*4*5 = 120. Problem Statement Given a number write a Java program to calculate the factorial using while loop. Input ... Read More
Java provides a built-in class called Calendar that allows developers to work with dates and times in their applications. The Calendar class provides various methods to manipulate dates and times, such as adding or subtracting days, months, years, hours, minutes, and seconds. Problem Statement Write a Java program to increment the current time by 10 minutes using the Calendar class. Output Current Date = Thu Nov 22 16:24:27 UTC 2018 Updated Date = Thu Nov 22 16:34:27 UTC 2018 Steps to add minutes to current time using Calendar.add() method Below are the steps to add minutes to current time using ... Read More
Java is a secure, powerful, and reliable language which developers can use to develop different types of applications that can run on desktop, web, and mobiles. Developers can develop customized applications with the help of GUI components. These GUI components are available in AWT and Swing and in this article, we will discuss the differences between AWT and Swing. What is AWT in Java? The full form of AWT is Abstract Window Toolkit. This is an API which developers use to develop different types of GUI applications. Sun Micro Systems developed and launched AWT in 1995. A large number of ... Read More
Companies are of many types but the two main types are product-based and service-based. Product-based companies sell different types of products while service-based companies sell different types of services. There are companies that sell both products and services. In this article, we will see the difference between product-based and service-based companies. What are Product Based Companies? Product-based companies are the ones that are responsible for manufacturing and selling different types of physical products which can be groceries, electronic items, fashionable items, and many more. Companies have to meet the requirements of their customers on the basis of their feedback. These ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP