Mahesh Parahar has Published 253 Articles

Difference between Linux and Unix

Mahesh Parahar

Mahesh Parahar

Updated on 31-Oct-2023 03:53:47

18K+ Views

LinuxLinux is an open source multi-tasking, multi-user operating system. It was initially developed by Linus Torvalds in 1991. Linux OS is widely used in desktops, mobiles, mainframes etc.UnixUnix is multi-tasking, multi-user operating system but is not free to use and is not open source. It was developed in 1969 by ... Read More

Cut Set and Cut Vertex of Graph

Mahesh Parahar

Mahesh Parahar

Updated on 22-Oct-2023 02:56:07

31K+ Views

Whether it is possible to traverse a graph from one vertex to another is determined by how a graph is connected. Connectivity is a basic concept in Graph Theory. Connectivity defines whether a graph is connected or disconnected.ConnectivityA graph is said to be connected if there is a path between ... Read More

How can we convert list to Set in Java?

Mahesh Parahar

Mahesh Parahar

Updated on 22-Oct-2023 02:44:35

25K+ Views

A list can be converted to a set object using Set constructor. The resultant set will eliminate any duplicate entry present in the list and will contains only the unique values.Set set = new HashSet(list);Or we can use set.addAll() method to add all the elements of the list to the ... Read More

How to copy a list to another list in Java?

Mahesh Parahar

Mahesh Parahar

Updated on 21-Oct-2023 13:59:39

24K+ Views

A List of elements can be copied to another List using multiple ways.Way #1Create a List by passing another list as a constructor argument.List copyOflist = new ArrayList(list);Create a List and use addAll() method to add all the elements of the source list.Way #2List copyOfList = new ArrayList(); copyOfList.addAll(list);Way #3Use ... Read More

Difference between Exception and Error in Java

Mahesh Parahar

Mahesh Parahar

Updated on 14-Sep-2023 16:08:28

22K+ Views

Exceptions and errors both are subclasses of Throwable class. The error indicates a problem that mainly occurs due to the lack of system resources and our application should not catch these types of problems. Some of the examples of errors are system crash error and out of memory error. Errors ... Read More

Difference between Paging and Segmentation

Mahesh Parahar

Mahesh Parahar

Updated on 13-Sep-2023 15:44:24

29K+ Views

PagingPaging is a memory management technique in which process address space is broken into blocks of the same size called pages (size is power of 2, between 512 bytes and 8192 bytes). The size of the process is measured in the number of pages. Similarly, main memory is divided into ... Read More

How do you create an empty list in Java?

Mahesh Parahar

Mahesh Parahar

Updated on 13-Sep-2023 15:17:37

38K+ Views

A List of elements can be created using multiple ways.Way #1Create a List without specifying the type of elements it can holds. Compiler will throw warning message for it.List list = new ArrayList();Create a List and specify the type of elements it can holds.Way #2List list = new ArrayList();ExampleFollowing is ... Read More

Difference between MAC Address and IP Address

Mahesh Parahar

Mahesh Parahar

Updated on 19-Aug-2022 12:38:43

8K+ Views

Both MAC Address and IP Address are used to uniquely identify a machine on the internet. MAC address is provided by the chip maker while IP Address is provided by the Internet Service Provider. Mac Address Media Access Control (MAC) address is a physical address that works at the data ... Read More

Difference between C and C++.

Mahesh Parahar

Mahesh Parahar

Updated on 19-Aug-2022 12:06:49

7K+ Views

C programming Language C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC PDP-11 computer in 1972. In 1978, Brian Kernighan and Dennis Ritchie produced the first publicly available ... Read More

Difference between DNS and DHCP

Mahesh Parahar

Mahesh Parahar

Updated on 16-Jun-2022 12:23:23

11K+ Views

A Domain Name System (DNS) server is used to translate domain names to IP Addresses and vice versa. DHCP is a client/server protocol that automatically assigns an IP address and other configuration information to an Internet Protocol (IP) host.Read through this article to find out more about DNS and DHCP ... Read More

Advertisements