Found 82 Articles for Miscellaneous

Difference Between Stack and Queue

AmitDiwan
Updated on 24-Mar-2021 12:28:30

920 Views

In this post, we will understand the difference between Stack and Queue.StackThey are based on LIFO- Last In First Out.This means the element inserted at the end is the first element to get deleted.Insertion and deletion happen in a stack from one end only, i.e the top.Insert operation is known as ‘push’ operation.Delete operation is known as ‘pop’ operation.A pointer is used to access the list, it is known as ‘top’.The ‘top’ points to the last element of the list.It helps work with problems associated with recursion.Representation of Stack (LIFO)QueuesThey are based on FIFO- First In First Out.This means the ... Read More

Difference Between Linear Search and Binary Search

Ravi Ranjan
Updated on 21-Aug-2025 19:18:50

3K+ Views

A linear search compares the target element with each array element, while a binary search uses divide-and-conquer method to efficiently search for the target element. In this article, we will compare linear search and binary search. What is Linear Search? Linear search is a sequential searching algorithm where we traverse every element within the input array and compare it with the target element to be found. If the target element is found, we return true and the index, and return false if the element is not found in the given array. Below is an animation of working of linear ... Read More

Difference Between Applet and Application

AmitDiwan
Updated on 23-Mar-2021 08:42:12

3K+ Views

In this post, we will understand the difference between Applet and Application.ApplicationThey are similar to Java programs.They can be executed independently without using web browser.It requires a ’main’ function for it to be executed.Java applications have full access to local file system and network.They can access all kinds of resources that are available to the system.They can execute the programs with the help of the local system.An application program is required when a task needs to be directly performed for the user.AppletsThey are small Java programs.They have been designed to be included with HTML documents.They need Java enabled web browser ... Read More

Difference Between Link and Association

AmitDiwan
Updated on 23-Mar-2021 08:01:46

12K+ Views

In this post, we will understand the difference between Link and Association.LinkIt can be understood as the physical connection between objects.It helps tell about the relationship among objects.It is represented using line segment between objects.They can’t be referenced.It is used in UML designs.AssociationIt is a specification about the collection of links.The connections are related to classes.It is a general relationship between classes.They are implemented using programming languages as a reference model.It shows connections between classes using line segments.It is used in UML designs.

Difference Between Friend Function and Friend Class

AmitDiwan
Updated on 23-Mar-2021 08:01:22

6K+ Views

In this post, we will understand the difference between Friend function and Friend class.Friend FunctionIt is usually used with operator overloading operation.It is used with the ‘friend’ keyword.It helps give a non-member function the access to the private members of the class.It has to be declared before it is used.It is used to access private and protected members of the class.It can be a global function or a function in another class.Exampleclass Node {    private:    int val;    Node* next;    // Other members of Node Class //    friend int LinkedList::search();    // Only search method ... Read More

Difference Between Server-side Scripting and Clientside Scripting

AmitDiwan
Updated on 23-Mar-2021 07:38:59

5K+ Views

In this post, we will understand the difference between server-side scripting and client-side scripting.Server-side ScriptingIt helps work with the back end.It doesn’t depend on the client.It runs on the web server.It helps provide a response to every request that comes in from the user/client.This is not visible to the client side of the application.It requires the interaction with the server for the data to be process.Server side scripting requires languages such as PHP, ASP.net, ColdFusion, Python, Ruby on Rails.It is considered to be a secure way of working with applications.It can be used to customize web pages.It can also be ... Read More

Difference Between CGI and Servlet

Aishwarya Naglot
Updated on 11-Oct-2024 15:23:41

3K+ Views

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

Difference Between Linear Queue and Circular Queue

AmitDiwan
Updated on 23-Mar-2021 07:14:18

3K+ Views

In this post, we will understand the difference between linear queue and circular queue −Linear QueueIt is a linear data structure, which data is arranged in a linear pattern.Operations such as insertion and deletion are done from rear and front respectively.It requires more memory, since data is stored in a linear fashion.The element that is added to a linear queue at first, is the element that gets deleted first.It follows FIFO, i.e first in first out.The element that is inserted first is the element that is deleted first as well.It is not as efficient as a circular queue structure.Circular QueueThe ... Read More

Difference Between Insertion Sort and Selection Sort

Nishu Kumari
Updated on 03-Mar-2025 13:16:17

3K+ Views

In this article, we will explain the difference between Insertion Sort and Selection Sort. These are two basic sorting algorithms used to arrange numbers in order. We will look at how they work, how fast they are, and when to use each one. By the end, you'll have a clear understanding of the differences between Insertion Sort and Selection Sort. Here's what we'll cover: What is Insertion Sort? What is Selection Sort? Complexity Comparison Key Differences Between Insertion Sort and Selection Sort ... Read More

Explain the Difference Between Definition and Declaration

AmitDiwan
Updated on 23-Mar-2021 07:13:31

2K+ Views

In this post, we will understand the difference between definition and declaration.DefinitionDefinition, with respect to a function indicates that the body of the function has been developed.With respect to variable, it means a value has been associated/defined with that variable.A function can be defined only once.Once a function or variable has been defined, it is ready to be used.A variable can be re-defined multiple times, as and when required. This depends on the language and the scopes.Memory is allocated when function or a variable is defined.Below is an example of variable definitionsum = 0A variable named ‘sum’ is assigned to ... Read More

Advertisements