Differences
Overview:- Here we are trying to tell you the difference between many things, which include things from technology, computers, and other fields.
Difference Between Bluetooth and WiFi
| Bluetooth |
WiFi |
| 2.4 GHz |
2.4, 3.6, 5 GHz |
| It is less secure |
Security issues are already being debated |
| Bluetooth adaptor on all the devices connecting with others. |
Wireless adaptors on all the devices of the network, a wireless router. |
| Fairly simple to use. can be used to connect up to seven devices at a time |
It is more complex and requires the configuration of hardware and software. |
Difference Between WPA 2 and WPA 3
| WPA 2 |
WPA 3 |
| A security protocol developed by the Wi-Fi alliance in 2004 for use in securing a wireless network; designed to replace the WEP and WPA protocols. |
WPA 3 is the next generation of WPA and has better security features. It protects against weak passwords that can be cracked relatively easily via guessing. |
| WPA 2 is recommended over WEP and WPA |
WPA3 is more secure than WPA2 |
| Wi-Fi Protected Access 2 |
Wi-Fi Protected Access 3 |
| Unlike WEP and WPA, WPA2 uses the AES standard instead of the RC4 stream |
28-bit encryption in WPA3-Personal mode and forward secrecy
|
Difference Between i3 Processor and i5 Processor
| i3 Processor |
i5 Processor |
| Core i3 processors do not support "Turbo Boost" |
Core i5 processor supports dynamic overclocking of the CPU to enhance performance. |
| Low-end positioning |
Mid-level positioning |
| 2.933 GHz to 3.2 GHz |
2.4 GHz to 3.33 GHz; Max. CPU clock rate 3.6 GHz Overclocked up to 4.5 GHz |
| All models of Core i3 have an integrated GPU |
Core i5-6xx processors have an integrated GPU; others do not. |
Difference Between Linux and Windows
| Linux |
Windows |
| Linux is an open-source operating system |
Windows are not an open-source operating system. |
| Linux is free of cost |
While it is costly |
| Its file name case-sensitive |
While its file name is case-insensitive |
| In Linux, the monolithic kernel is used |
While in this, the microkernel is used |
| Linux provides more security than windows |
While it provides less security than Linux. |
Difference Between Cyber Security and Ethical Hacking
| Cyber Security |
Ethical Hacking |
| It involves recognizing and resolving security issues in the system in order to protect. |
It involves finding vulnerabilities and weaknesses in the system that the malicious attackers may use and reporting them to the owner and fixing it. |
| Cybersecurity involves roles such as security analyst and SOC engineer. |
Ethical hacking involves roles such as penetration tester and security manager. |
| Cybersecurity focuses on how to protect the system i.e. it is a defensive job. |
Ethical hacking focuses on how to attack the system i.e. it is an offensive job. |
| Cybersecurity experts regularly update the system in order to make sure that the system is updated. |
Ethical hackers keep on testing the system continuously in order to find out the flaws in the system. |
| All cybersecurity experts are not ethical hackers much. |
All ethical hackers are cybersecurity experts. |
Difference Between Web Application and Website
| Web Application |
Website |
| A web application is designed for interaction with the end-user. |
A website mostly consists of static content. It is publicly accessible to all visitors. |
| In a web application, the user not only reads the page content but also manipulates the restricted data. |
A website provides visual & text content which user can view and read, but not affect it's functioning. |
| Web applications need authentication, as they offer a much broader scope of options than websites. |
Authentication is not obligatory for informational websites. The user may ask to register to get a regular update or to access additional options. These features not available for unregistered website visitors. |
| Web application functions are quite higher and complex compared to a website. |
The website displays the collected data and information on a specific page. |
| Web application development is part of the website. It is itself not a complete website. |
The website is a complete product, which you access with the help of your browser. |
| The site must be precompiled before deployment. |
The site doesn't need to be pre-compiled. |
| All changes require the entire project to be re-compiled and deployed. |
Small changes never require a full re-compilation and deployment. You just need to update the HTML code. |
Difference Between Compiler and Interpreter
| Compiler |
Interpreter |
| Compiler scans the whole program in one go. |
Translates program one statement at a time. |
| As it scans the code in one go, the errors (if any) are shown at the end together. |
Considering it scans code one line at a time, errors are shown line by line. |
| The main advantage of compilers is their execution time. |
Due to interpreters being slow in executing the object code, it is preferred less. |
Difference Between Memory and Storage
| Memory |
Storage |
| Volatile |
Non-volatile |
| High Performance |
Low Performance |
| Small Capacity |
Large Capacity |
| Cache and Primary Memory (SRAM and DRAM) |
HHD and SSD |
Difference Between Pointer and Reference
| Pointer |
Reference |
| A pointer is a variable that contains the address of another variable. |
A reference is a variable that is referred to as another name for an already existing variable. |
| The pointer can be initialized at any time. |
References have to be initialized at the point of definition. |
| A pointer has its own memory address and size on the stack. |
Reference shares the same memory address (with the original variable) but also takes up some space on the stack. |
| A pointer can have a NULL value. |
Reference can not be a NULL. |
| Arithmetic operations can be performed on pointers. |
There is no such thing called Reference Arithmetic. |
| You can have pointers to pointers offering extra levels of indirection. |
References only offer one level of indirection. |
Difference Between Constructor and Destructor
| Constructor |
Destructor |
| Constructor helps to initialize the object of a class. |
Whereas destructor is used to destroy the instances. |
| Constructors can either accept the arguments or not. |
While it can't have any argument. |
| A constructor is called when the instance or object of the class is created. |
It is called while the object of the class is freed or deleted. |
| Constructor is used to allocating the memory to an instance or object. |
While it is used to deallocate the memory of an object of a class. |
Difference Between Engineer and Developer
| Engineer |
Developer |
| They designed, maintain, test, and evaluate the software. |
They build software that runs across various systems. |
| Software engineering is a team activity. |
Development is primarily a solitary activity. |
| They are involved in the whole activity. |
These are included in the software process. |
| They work on components with other engineers to build a system. |
A developer writes a complete program. |
Difference Between Li-Fi and Wi-Fi
| Li-Fi |
Wi-Fi |
| 1-1.5 Gbps speed |
1-250 Mbps speed |
| 10 meters Range |
20-100 meters Range |
| 802.15.7 IEEE standard |
802.11b IEEE Standard |
| Point to Point Network |
Point to Point Multipoint |
| 100 times of Tera HZ |
2.4 GHz |
Difference Between MAC Address and IP Address
| MAC Address |
IP Address |
| Address Resolution protocol helps to retrieve the MAC address. |
Reverse Address Resolution Protocol helps to retrieve the IP addresses. |
| It has 48 Bit address. |
It has 32 to 128 Bit address. |
| MAC Addresses are Fixed. |
IP Addresses are not Fixed it may change. |
| It is a physical address. |
It is a logical address. |
| MAC defines the device's identity. |
Shows the network to which the device is connected. |
| MAC address helps to solve IP address issues. |
The IP address cannot help to solve MAC address issues. |
| MAC address found at the 2nd Layer of OSI model. |
IP address found at the 3rd Layer of OSI model. |
| The network card provides a MAC address. |
Internet Service Provider (ISP) gives IP address. |
Difference Between CPU and GPU
| CPU |
GPU |
| Stands for Central Processing Unit. |
Stands for Graphics Processing Unit. |
| Low-Latency. |
High throughout. |
| Processing Serial Instructions. |
Processing parallel instructions. |
| Control logic for out-of-order and speculative executions. |
Architecture is tolerant of memory latency. |
Difference Between Low-Level Language and High-Level Language
| Low Level |
High Level |
| It is a machine-friendly language |
It is a programmer-friendly language. |
| Low-Level language is high memory efficient. |
A high-Level language is less memory efficient. |
| It is tough to understand. |
It is easy to understand. |
| It is simple to debug. |
It is complex to debug comparatively. |
| It can run on any platform. |
It is machine-dependent. |
| It needs a compiler or interpreter for a translation. |
It needs an assembler for translation. |
Difference Between Programming Language and Scripting Language
| Programming Language |
Scripting Language |
| A programming language is an organized way of communicating with computers. |
A scripting language is a programming language that supports scripts. |
| Traditional programming is based on low-level language. |
Scripting prefers high-level language. |
| General programming leads to closed software applications. |
Scripting promotes open projects and is used for web applications. |
| Compiled. |
Interpreted. |
| Java, C, C++, etc. |
JavaScript, Perl, Python, etc. |
| Code Intensive. |
Less Code intensive. |
| More code needs to be written and takes time to learn. |
Less coding is required and less time takes. |
Difference Between HTTP and HTTPS
| HTTP |
HTTPS |
| Stand for Hyper-Text Transfer Protocol |
Hyper-Text Transfer Protocol Secure |
| Use Port 80 |
Use Port 443 |
| No certificates |
SSL certificate |
| Less secure |
More secure |
| Application Layer in OSI model |
Transport Layer in OSI model |
| Faster |
Slower |
Difference Between Artificial Intelligence and Machine Learning
| Artificial Intelligence |
Machine Learning |
| AI stands for Artificial intelligence, wherever intelligence is outlined addition of data intelligence. |
The registers are divided into different groups like integer, floating, and control. |
| The aim is to extend the probability of success and not accuracy. |
The aim is to extend accuracy, however, it doesn't care regarding the success. |
| It works like a worm that will sensible work. |
Easy conception machine takes knowledge and learns from knowledge. |
| AI results in intelligence or knowledge. |
ML results in data. |
Difference Between C and C++ Language
| C |
C++ |
| C is a subset of C++. |
C++ is a superset of C. |
| C contains 32 keywords. |
C++ contains 52 keywords. |
| Procedural programming language. |
Object-Oriented Programming Language. |
| Function-driven language. |
An object-driven language. |
| The header file used is stdio.h |
The Header file used is iostrem.h |
| Easy to Learn |
Harder to Learn |
Difference Between Data Engineer and Data Scientist
| Data Engineer |
Data Scientist |
| Develop, construct, test, and maintain architectures (such as database and large scale processing systems) |
Conduct research to answer industry and business questions. |
| Ensure architecture will support the requirement of the business. |
Leverage a large volume of data from internal and external sources. |
| Discover opportunities for data acquisition. |
Employ sophisticated analytics programs, machine learning, and statical methods to prepare data for use in predictive and prescriptive modeling. |
| Develop data set processes for data modeling, mining, and production. |
Explore and examine data to find hidden patterns. |
| Employ a variety of languages and tools (e.g. scripting languages) to marry systems together. |
Automate work through the use of predictive and prescriptive analytics. |
| Recommend ways to improve data reliability, efficiency, and quality. |
Tell stories to key stakeholders based on their analysis. |
Difference Between OOP and POP
| OOP |
POP |
| Stands for Object-Oriented Programming. |
Stands for Procedural Oriented Programming. |
| Program is divided into objects. |
Program is divided into functions. |
| Bottom-up approach. |
Top-down approach. |
| Inheritance property is used. |
Inheritance is not allowed. |
| It uses an access specifier. |
It doesn't use an access specifier. |
| Encapsulation is used to hide the data. |
No data hiding. |
| Concept of virtual function. |
No virtual function. |
| C++, Java. |
C, Pascal. |
Difference Between C Language and Python Language
| C |
Python |
| Used for hardware-related applications. |
General-purpose programming language. |
| Compiled. |
Interpreted. |
| Pointers are available. |
No pointers. |
| A limited number of built-in functions. |
A large number of built-in functions. |
| Faster |
Slower |
Difference Between Class and Object
| Class |
Object |
| Class is a mechanism of binding data members. |
An instance of class or variable of the class. |
| It is logical existence. |
It is physical existence. |
| Memory space is not allocated when it is created. |
Memory space is allocated when it is created. |
| The definition is crated once. |
It is created many times as you require. |
Difference Between Coding and Programming
| Coding |
Programming |
| A working piece of code. |
The whole application, a software product, or a website. |
| The primary aim of coding is to facilitate communications between humans and machines. |
Programming is a process of formally writing codes so that the human inputs and machine outputs remain in sync. |
| Being the initial step of communication, coders normally deal with certain lines of code without worrying about the details. |
Programmers usually handle the communication approach in a much more mature way. They analyze and conceptualize the different aspects of the communication and produce the correct machine output accordingly. |
| Coding is the initial step of programming complex queries and it is easier than programming. |
Programming Handles different complex situations and queries to produce the proper machine-level outputs. So, it is basically an advanced version of coding and other different approaches. Thus, it is much more complex than coding. |
| Coding is basically the process of Writing Codes from one language to another. |
Programming is the process of creating and developing an executable machine program that performs a set of instructions. |
Difference Between RAM and ROM
| RAM |
ROM |
| Stands for Random Access Memory. |
Stands for Read-Only Memory. |
| RAM allows the computer to read data quickly to run applications. |
ROM stores the program required to initially boot the computer. |
| RAM is volatile, its contents are lost when the device is powered off. |
It is not volatile i.e. its contents are retained even when the device is powered off. |
| The two main types of RAM are Static RAM and Dynamic RAM. |
The types of ROM include PROM, EPROM, and EEPROM. |
Difference Between Function and Procedure
| Function |
Procedure |
| A function deals with an expression. |
Whereas a procedure does not deal with as an expressing. |
| The function is used to calculate something from a given input. |
While the procedure is the set of commands, which are executed in order. |
| The function and be called by a procedure. |
But a procedure can not be called by a function. |
Difference Between Wi-Fi and Ethernet
| Wi-Fi |
Ethernet |
| Wi-Fi uses radio waves which provides seamless internet access to laptops as well as mobile devices. |
Ethernet is more like a physical component which is widely used in wired local area network (LAN) |
| There is a need for encryption of data flow over the network. |
Encryption of Data flow is not mandatory. |
| Data transfer speed is slower than Ethernet. |
It provides faster data transfer speed than Wi-Fi. |
| It is convenient because it does not contain wires which leads to no cabling. |
It has comparatively less mobility as there is less cabling as well as recabling. |
Difference Between Apps and Bots
| Apps |
Bots |
| Expensive to build. |
Inexpensive to build. |
| Difficult to market. |
Easy to share. |
| Takes up Space. |
No downloads. |
| Requires updates. |
Auto-Updates. |
| App for every device. |
Cross-platform |
Difference Between IPv4 and IPv6
| IPv4 |
IPv6 |
| Stands for Internet Protocol version 4 |
Stands for Internet Protocols version 6 |
| Deployed in 1981 |
Deployed in 1999 |
| Address size: 32-bit number |
Address Size: 128-bit number |
| Address format: Dotted Decimal Notation 192.159.252.76 |
Address Format: Hexadecimal Notation 3FFE:F200:0234:AB00:0123:4567:8901:ABCD |
| Prefix Notation: 192.149.0.0/24 |
Prefix Notation: 3FFE:F200:0234::/48 |
| Number of Addresses: 232= -4,294,967,296 |
Number of Addresses: 2128= -340,282,366,920,938,463,463,371,607,431,768,211,456 |
Difference Between Designer and Developer
| Designer |
Developer |
| Focus on the look and feel of the software. |
Create the inner workings of the software. |
| Focus on XML or JavaScript. |
Focus on Python, PHP, or Ruby. |
| Have a strong intuition and imagination |
Have good logic and technicality. |
Difference Between Variance and Standard Deviation
| Variance |
Standard Deviation |
| It can simply be defined as the numerical value. which describes how variable the observations are. |
It can simply be defined as the observations that are measured through dispersion within a dataset. |
| Variance is expressed in squared units. |
Standard Deviation is expressed in the same units of the data available. |
| Variance is nothing but the average taken out of the squared deviations. |
Standard Deviation is defined as the root of the mean square deviation. |
| It is mathematically denoted as (σ2) |
It is mathematically denoted as (σ) |
| Variance is a perfect indicator of the individuals spread out in a group. |
Standard deviation is the perfect indicator of observations in a dataset. |
Difference Between VoIP and POTS
| VoIP |
POTS |
| It Stands for Voice over Internet Protocol. |
It stands for Plain Old Telephone Service. |
| VoIP is based on packet switching. |
POTS is based on circuit switching. |
| VoIP allows making phone calls using the internet. |
POTS allows making phone calls through a fixed-line. |
| 10 kbps required for the call. |
64 kbps required for calls. |
| Converts the voice into a digital signal. |
Converts the voice into an electrical signal. |
Difference Between Web Scraping and Web Crawling
| Web Scraping |
Web Crawling |
| It is used for downloading information. |
It is used for the indexing of web pages. |
| A web scraper doesn't obey robots.txt |
It always obeys robots.txt |
| The tool used is Web Scraper. |
The tool used is Spiders. |
| ProWebScraper, Web Scraper.io are the examples |
Google, Yahoo, or Bing do Web Crawling. |
Difference Between Browser and Server
| Browser |
Sever |
| The web browser requests the server. |
The web server accepts, approves the request. |
| Doesn't exist any processing model for the web browser. |
Three types of processing models for the web servers. |
| Web browser stores the cookies for different websites. |
Web servers provide an area to store and organize the page of the website. |
Difference Between Web Server and Application Server
| Web Server |
Application Server |
| Web server is useful or fitted for static content. |
The application server is fitted for a dynamic one. |
| In webserver, HTML and HTTP protocols are used. |
GUI, HTTP, and RPC/RMI protocols are used. |
| Web servers arrange the run environment for web applications. |
Application servers arrange the run environment for enterprises applications. |
Difference Between Web Services and Web API
| Web Services |
Web API |
| Web services are used for REST, SOAP type of communication. |
API is used for any style of communication. |
| All web services are APIs. |
APIs are not web services. |
| Web service supports the only XML. |
API supports XML and JSON. |
| Web service can be hosted on IIS. |
Web API can be hosted only on IIS and self. |
Difference Between Public, Private, and Protected Access Specifiers
| Public |
Private |
Protected |
| Can be accessed outside the class. |
Cannot be accessed outside the class. |
Cannot be accessed outside the class. |
| Can be inherited. |
Cannot be inherited. |
Can be inherited. |
| Can be accessed by friend functions. |
can be accessed by the friend function. |
can be accessed by friend functions. |
Difference Between Data and Information
| Data |
Information |
| Data are text and numerical values. |
Information is a refined form of actual data. |
| Bits and Bytes are the measuring units of data. |
Information is measured in meaningful units like time, quantity, etc. |
| Data does not directly help in decision-making. |
Information directly helps in decision-making. |
|
Data can be easily structured as the following:
1. Tabular data
2. Graph
3. Data tree
|
Information can also be structured as the following:
1. Language
2. Ideas
3. Thoughts
|
Difference Between Unique and Primary Key
| Unique Key |
Primary Key |
| A table can contain multiple unique keys. |
A table can contain only one primary key. |
| NULL values are allowed. |
NULL values are not allowed. |
| It helps to maintain unique data in a column of a table. |
It helps to identify a unique row from a table. |
| For MS SQL server databases, a unique constraint will generate a unique NON-CLUSTERED INDEX. |
The primary key will generate a unique CLUSTERED INDEX.
|
Difference Between C, C++, and Java Language
| C |
C++ |
Java |
| C language is a procedural language. |
C++ is an object-oriented language. |
Java is also an object-oriented language (not pure as it also supports primitive data types.) |
| C language is platform-dependent. |
C++ is platform dependent. |
Java is a platform-independent language. |
| C language supports pointers. |
C++ language also supports pointers. |
Java does not support pointers. |
| We cannot create our own package in the C language. |
In the C++ language also, we cannot create our package. |
In the Java language, we can create our package and can specify the classes. |
| In C, there is no concept of inheritance. |
In C++, we can use multiple inheritances. |
Java does not support multiple inheritances. |
Difference Between Google and DuckDuckGO
| Google |
DuckDuckGo |
| Includes data for surface web. |
Includes data for DEEP and D@RK web. |
| Not much Private. |
So much private. |
| Have no VPN changing facility. |
Can change VPN of different countries. |
| Huge market share. |
Tiny market share. |
Difference Between FTP and SFTP
| FTP |
SFTP |
| FTP stands for File Transfer Protocol. |
SFTP stands for Secure File Transfer Protocol. |
| FTP uploads or downloads its data without any security. |
SFTP provides full security to the data with SSHP. |
| In most cases, FTP is not Encrypted because FTP is anonymously accessible. |
Before sending it to another host, SFTP encrypts the information. |
| The File Transfer Protocols uses a direct method to transfer files. |
Secure File Transfer Protocol uses the Tunneling method for file transfer. |
Difference Between VPN and APN
| VPN |
APN |
| It uses the internet to transfer data using secure methods. |
It protocols secret data sent over a public telecom network. |
| Its stands for Virtual Private Network. |
Its stands for Access Point Name. |
| It works over an existing public network. |
An APN directly connects users to the Internet. |
| VPNs are mainly designed for the transmission of confidential information. |
APNs are designed for wireless providers. |
Difference Between Frontend, Backend, and Full-Stack Developers
| Frontend |
Backend |
Full-Stack |
| They learn HTML, CSS, Javascript, Bootstrap, Foundation, Backbone frameworks. |
They learn PHP, Python, Ruby, Server program SQL/Oracle. |
They learn all of the languages for both frontend and backend. |
| They do the creation of user-friendly webpages, God of screen visuals and functionality, able to creatively solve user-centered issues. |
They do the building and maintaining of the web server, application, and database, ensuring frontend operations are smooth. |
They do mostly backend work but are also adept at frontend languages to manipulate how the site looks on the user's end. |
| They are creative, imaginative, innovative, and empathetic. |
They are analytical, fast, composed, logical, detail-oriented. |
They are innovative, disciplined, multi-taskers. |
| |
|
|
Difference Between Desktop and Laptop
| Desktop |
Laptop |
| It needs external devices to be fully functional. |
It is an all-in-one computer system. |
| It is large in size. |
While it is small in size. |
| It is not portable. |
While it is easily portable. |
| More powerful processor. |
Less powerful processor. |
| Repairing desktops is easy. |
Repairing laptops is a little complex. |
Difference Between Junior, Semi-Junior, and Senior Developer
| Junior |
Semi- Senior |
Senior |
| They need supervision. |
They have the technical ability to perform tasks with less supervision. |
They are able to supervise and lead teams. |
| Basic knowledge about software and hardware. |
Know the stages of development; analysis, development, test, implementation, documentation, etc. |
Understands the scope of a project and proposes methods for development, test, implement and maintain the project. |
| Know at least one language of programming. |
Set up an environment development in case same. |
Advises junior and semi, senior developers. |
| Collaborate in the initial planning of the draft. |
Detects errors code and makes them more efficient. |
Make periodicals code reviews. |
| Works functions and internal tools of the software. |
Create and write simple unit tests. |
Improves quality and code structure. |
Difference Between Ethernet and Internet
| Ethernet |
Internet |
| Ethernet is a system where the computers are connected within a primary physical space. |
The internet is a system of interconnected computer networks which uses the TCP/IP protocol to link devices worldwide. |
| More secure because outside devices do not have access. |
Less secure as anyone can access the network and gain information. |
| Uses broadcast networks to implement communication. |
Uses point-to-point network to implement communication. |
| Allows only one communication at a time. |
Allows multiple communications taking place concurrently. |
| Example:- LAN (Local Area Network) |
Example:- WAN (Wide Area Network) |
Difference Between Stop and Wait Protocol and Sliding Window Protocol
| Stop and Wait Protocols |
Sliding Window Protocol |
| In Stop and Wait Protocols, the sender sends one frame and waits for acknowledgment from the receiver side. |
In sliding window protocol, the sender sends more than one frame to the receiver side and re-transmits the frame(s) which is/are damaged or suspected. |
| Sender window size and receiver window size of Stop and Wait Protocol are 1. |
Sender window size and Receiver window size of sliding window protocol in N. |
| Stop and Wait Protocol is half-duplex. |
The sliding window protocol is full-duplex. |
|
The efficiency of the Stop and Wait Protocol is worse.
1/(1+2*a)
|
The efficiency of the Sliding window protocol is better.
N/(1+2*a)
|
Difference Between Wait() and Sleep() function in Java
| Wait() |
Sleep() |
| Wait() method belongs to object class. |
Sleep() method belongs to thread class. |
| Wait() method releases lock during synchronization. |
Sleep() method does not release the lock on the object during synchronization. |
| Wait() should be called only from a synchronized context. |
There is no need to call sleep() from a synchronized context. |
|
Wait() has three overloaded methods:
wait()
wait(long timeout)
wait(long timeout, int Nanos)
|
Sleep() has two overloaded methods:
sleep(long millis) :: millis:Milliseconds
sleep(long millis, int nanos) :: nanos:Nanoseconds
|
|
Wait() is not a static method.
|
Sleep() is a static method.
|
Difference Between Fragmentation and Segmentation
| Fragmentation |
Segmentation |
| Its main purpose is to help the operating system use the available space on storage. |
Its main purpose is to give the user's view of the process. |
| Types of fragmentation include internal and external fragmentation. |
Type of segmentation includes virtual memory and simple segmentation. |
| It is generally associated with IP. |
It is generally associated with TCP. |
| In this, storage space is used inefficiently that in turn reduces capacity and performance. |
In this, memory is divided into variable size parts usually known as segments.
|
Difference Between For and While Loop
| For |
While |
|
for(initialization; condition;iteration)
{//body of 'for' loop}
|
while (condition)
{statements; //body of loop}
|
| Initialization, condition checking, iteration statement are written at the top of the loop. |
Only initialization and condition checking is done at the top of the loop. |
| The 'for' loop is used only when we already knew the number of iteration. |
The 'while' loop is used only when the number of iteration is not exactly known. |
| In 'for' loop iteration statement is written at the top, hence, executes only after all statements in the loop are executed. |
In 'while' loop, the iteration statement can be written anywhere in the loop.
|
Difference Between List and Array in Python
| List |
Array |
|
Can consist of elements belonging to different data types.
|
only consists of elements belonging to the same data type. |
| No need to explicitly import a module for declaration. |
Need to explicitly import a module for declaration. |
| Cannot directly handle arithmetic operation. |
Can directly handle arithmetic operations. |
| Can be nested to contain a different type of elements. |
Must contain either all nested elements of the same size.
|
| Preferred for a shorter sequence of data items. |
Preferred for the longer sequence of the data items.
|
Difference Between 4G and 5G
| 4G |
5G |
|
It Stands for the 4th Generation of Mobile Networks.
|
It stands for the 5th Generation of Mobile Network.
|
| Its Bandwidth up to 200Mbps |
Its Bandwidth up to 1 Gbps |
| Its Latency is 20-30 Milliseconds |
Its Latency is <10 Milliseconds. |
| Its Average Speed is 25 Mbps. |
Its Average Speed is 200-300 Mbps. |
| Its Base Stations are Cell Towers. |
Its Base Stations are Small Cells. |
| Launch in India By Airtel in 2012 |
Launch in India expected in 2022
|
Difference Between this() and super() keyword
| this() |
super() |
| It represents the present instance of a class. |
It represents the current instance of the parent class. |
| By using this keyword we call the default constructor. |
By using super keyword we call the base class constructor. |
| It used to point to current class instances. |
It used to point to the instance of the parent class. |
Difference Between StringBuffer and StringBuilder in Java
| StringBuffer |
StringBuilder |
| The storage area is a heap and modified easily. |
Storage is a heap and can be modified. |
| StringBuffer methods are synchronized. |
StringBuilder is non-synchronized. |
| StringBuffer is thread-safe. |
StringBuilder is a fast aa it is not thread-safe. |
| The performance is very low. |
The performance is very fast. |
Difference Between Recursion and Iteration
| Recursion |
Iteration |
| Recursion occurs when a function calls itself until the desire condition on fulfilling. |
Iteration is a set of instructions repeatedly executed. |
| It's used when code size needs to be small, and time complexity is not an issue. |
It's used when the time complexity needs to be balanced against an expanded code size. |
| It terminates through the base case, where there will be no function call. |
It's terminate when the termination condition for the iteration ceases to be satisfied. |
| Its time complexity is very high (generally exponential) |
Its time complexity is relatively lower time complexity (generally polynomial-logarithmic). |
Difference Between Vector and ArrayList
| Vector |
ArrayList |
| Vector is synchronized. |
Array List is not synchronized. |
| Vector is slow as it is thread safe. |
Array List is fast as it's not-synchronized. |
| Vector defaults to doubling size of its array. |
If an element is inserted into the Array Lis, it is inclreases its Array size by 50% |
| Vector defines the increment size. |
Array List does not define the increment size. |
| Vector can use both Enumeration and iterator for traversing. |
Array List can only use iterator for traversing an Array List. |
Difference Between Array and Linked List
| Array |
Linked List |
| It is a consistent set of a fixed number of data items. |
It is an ordered set comprising a variable number of data items. |
| Its size specified during declaration. |
No need to specify the size they grow and shrink during execution. |
| Its element location is allocated during compile time. |
Its element position is assigned during run time. |
| Its stored consecutively. |
Its stored randomly. |
| It can access direct or randomly accessed, i.e., Specify the array index or subscript. |
It can be accessed sequentially, i.e.., Traverse starting from the first node in the list by the pointer. |
| Insertion and deletion of element is relatively slow as shifting is required. |
Insertion and deletion of element is easier, fast and efficient. |
| Searching algorithm used: Binary search and linear search. |
Searching alogrithm used: Linear search |
Difference Between Linux and ubuntu
| Linux |
Ubuntu |
| Linux, on the other hand, is the core operating system. |
Ubuntu is an operating system that is a distribution of Linux itself. |
| Linux was initially released back in the year 1991. |
Ubuntu was initially released back in the year 2004. |
| Linux is used for PCs, gaming consoles, embedded systems, desktops, and servers. |
Ubuntu software is used for Personal computers, servers, cloud computing, and IoT. |
| Linux is developed by Linus Torvalds. |
Ubuntu is Developed by Canonical Limited. |
Difference Between SQL and NoSQL Databases
| SQL |
NoSQL |
| SQL Database is one type (SQL database) with minor variations. |
NoSQL Database is different types including key-value stores, document databases, wide-column stores, and graph databases. |
| It is developed in the 1970s to deal with the first wave of data storage applications. |
It is developed in the 2000s to deal with the limitations of SQL databases. concerning scale, replication, and unstructured data storage. |
| SQL uses the scheme to store information about a new data item, the entire database must be altered, during which time the database must be taken offline. |
NoSQL uses the schemas to records can add new information on the fly, and unlike SQL table rows, dissimilar data can be stored together as necessary. |
| Data manipulation is done by the specific language using Select, Insert, and Update statements, e.g., SELECT fields FROM table WHERE... |
Data manipulation is done through object-oriented APIs. |
| It is a mix of open source (e.g., Postgres, MySQL) and closed source (e.g., Oracle Database) Development Model. |
Its Development Model is an Open-source. |
| Examples - MySQL, Postgres, Oracle Database. |
Examples - MongoDB, Cassandra, HBase, Neo4. |
Difference Between Web Designer and Web Developer
| Web Designer |
Web Developer |
| Web Designers are very creative in nature. |
Web Developers are more technical in nature. |
| They are totally creative. |
They are totally Logic-based. |
| They transform the ideas into visually appealing designs. |
They transform designs into fully functional websites. |
| They work on HTML, CSS, JS, etc. |
They work on Python, Ruby, etc. |
Difference Between Method Overloading and Method Overriding
| Method Overloading |
Method Overriding |
| The process of calling two methods having the same name with different parameters is called method overloading (in the same class) |
The process of calling two methods, one in the subclass and other in the superclass, having the same signature is called as method overriding. |
| It can be accessed within a class. |
Method overriding requires two classes to be accessed which having IS-A relationship. |
| Return type may be changed or may remain same with different parameters. |
Return type should be the same for both methods. |
| Method overloading is a concept of compile-time polymorphism. |
Method overriding is a concept of method overriding. |
|
e.g. class A{
void a1()
{// some required code}
void a1(int b)
{// Some required code}
}
|
e.g. class A{
void a1()
{// some required code}
}
Class B extends A{
void a1()
{//some required code}
}
{// Some required code}
}
|
Difference Between Function and Method
| Function |
Method |
| A function is a block of code that is called independently its name. |
The method is called dependently by its name associated with an object. |
| If any data (parameters) are passed, they are passed explicitly. |
A method is implicitly passed the object on which it is invoked. |
| The function does not deal with Class and its instance concepts. |
The method can operate on the data that is contained by the corresponding class. |
| Example - int(), float(), max(). |
Example - randint(), sqrt(), randrange() |
Difference Between HIDS and NIDS
| HIDS |
NIDS |
| Its stands for Host-based Intrusions Detection System. |
Its stands for Network-Based Intrusion Detection System. |
| HIDS is used to detect the intrusions. |
NIDS is used for the network. |
| It monitors suspicious system activities and traffic of a specific device. |
It monitors the traffic of all devices on the network. |