Data hiding and encapsulation both are the important concept of object oriented programming. Encapsulation means wrapping the implementation of data member and methods inside a class. When implementation of all the data member and methods inside a class are encapsulated, the method name can only describe what action it can perform on an object of that class. Data Hiding means protecting the members of a class from an illegal or unauthorized access. The main difference between data hiding and … [Read more...]
Difference Between Class and Interface in Java
Class and Interface both are used to create new reference types. A class is a collection of fields and methods that operate on fields. An interface has fully abstract methods i.e. methods with nobody. An interface is syntactically similar to the class but there is a major difference between class and interface that is a class can be instantiated, but an interface can never be instantiated. So let us learn some more difference between a class and interface with the help of a comparison chart … [Read more...]
Difference Between List and Set in Java
List and Set interface extends Collection. Both of them maintains the collection of elements or objects. But, the major difference that distinguishes them from each other is List is a collection of ordered element, the elements are added or remove or accessed with the help of an index variable. On the other hand, Set is a collection of objects where the collection does not allow duplicate elements in it. Let us study some more differences between List and Set interfaces with the help of … [Read more...]
Difference Between HashMap and Hashtable in Java
The HashMap and Hashtable, both are used to represent a group of objects that are represented in <Key, Value> pair. Each <Key, Value> pair is called Entry object. The collection of Entries is referred by the object of HashMap and Hashtable. Keys in a collection must be unique or distinctive. The difference between HashMap and Hashtable is that HashMap particularly implements the Map interface whereas, the Hashtable extends the Dictionary class (legacy class) which is reengineered … [Read more...]
Difference Between ArrayList and Vector in Java
ArrayList and Vector both are the classes under Collection Framework hierarchy. ArrayList and Vector, both are used to create a dynamic array of objects where the array can grow in size as and when required. There are two basic differences that distinguish ArrayList and Vector is that Vector belongs to Legacy classes that were later reengineered to support the collection classes whereas, an ArrayList is a standard collection class. Another important difference is that ArrayList is … [Read more...]
Difference Between Simplex, Half duplex and Full Duplex Transmission Modes
There are three modes of transmission simplex, half duplex, and full duplex. Transmission mode describes the direction, of flow of signal between two connected devices. The main difference between simplex, half duplex, and full duplex is that in a simplex mode of transmission the communication is unidirectional whereas, in the half-duplex mode of transmission the communication is two directional but the channel is alternately used by the both the connected device. On the other hand, in the … [Read more...]
Difference Between Point-to-point and Multipoint Connection
The point-to-point and Multipoint are two types of line configuration. Both of them describes a method to connect two or more communication devices in a link. The main difference between point-to-point and multipoint connection is that in a point-to-point connection the link is only between two devices i.e. a sender and a receiver. On the other hand, in a multipoint connection, the link is between a sender and multiple receivers. Lets us study further the difference between point-to-point and … [Read more...]
Difference Between Flow Control and Congestion Control
Flow control and congestion control, both are the traffic controlling mechanism but, both controls the traffic at different situations. The main difference between flow control and congestion control is that the flow control is a mechanism that controls the traffic between sender and receiver. On the other hand, the congestion control mechanism controls the traffic that is placed by the transport layer into the network. Let us study the difference between flow control and congestion control … [Read more...]
Difference Between dispose() and finalize() in C#
Methods dispose() and finalize() are the methods of C# which are invoked to free the unmanaged resources held by an object. The dispose() method is defined inside the interface IDisposable whereas, the method finalize() is defined inside the class object. The main difference between dispose() and finalize() is that the method dispose() has to be explicitly invoked by the user whereas, the method finalize() is invoked by the garbage collector, just before the object is destroyed. Let us study … [Read more...]
Difference Between new and malloc( )
The new and malloc() both are used to dynamically allocate the memory. Though, new and malloc() are different in many contexts. The primary difference between new and malloc() is that new is the operator, used as a construct. On the other hand, the malloc() is a standard library function, used to allocate memory at runtime. The other differences between them are discussed below in the comparison chart: Content: new Vs malloc() Comparison Chart Definition Key Differences … [Read more...]
- « Previous Page
- 1
- …
- 39
- 40
- 41
- 42
- 43
- …
- 48
- Next Page »