Float and Double both are the data types under Floating-point type. The Floating-point numbers are the real numbers that have a fractional component in it. The primary difference between float and double is that the float type has 32-bit storage. On the other hand, the double type has 64-bit storage. There are some other differences between float and double that are discussed in the comparison chart given below. Content: Float Vs Double Comparison Chart Definition Key … [Read more...]
Difference Between Process and Thread in Java
Java provides the concept of multitasking, which allows more than two processes to run concurrently, and allows more than two threads to run concurrently. The main difference between process and thread is that a process is a program in execution whereas, a thread is part of that running process. Process and thread share a relationship where a process provides an environment for the execution of the thread. A process can contain multiple threads. There are some other differences between … [Read more...]
Difference Between Applet and Servlet in Java
Applet and servlet are the small Java programs or applications. But, both get processed in a different environment. The basic difference between an applet and a servlet is that an applet is executed on the client-side whereas, a servlet is executed on the server-side. Both of them differ in many contexts, let us study the difference between applet and servlet with the help of comparison chart. Content: Applet Vs Servlet in Java Comparison Chart Definition Key Differences … [Read more...]
Difference Between Comparable and Comparator in Java
Comparable and Comparator both are the generic interfaces in Java used to compare the data elements of the objects. The Comparable interface is present in the java.lang package and the Comparator interface is present in the java.util package. The basic difference between the Comparable and Comparator interfaces is that the Comparable interface provides the single sorting sequence whereas, the Comparator interface provides the multiple sorting sequences. There are some other differences … [Read more...]
Difference Between Packages and Interfaces in Java
Packages and Interfaces both acts as a container. The content in packages and interfaces can be used by the classes by importing and implementing it correspondingly. The basic difference between packages and interfaces is that a package contains a group of classes and interfaces whereas, an interface contains methods and fields. Let's study some other differences with the help of comparison chart. Content: Packages Vs Interfaces in Java Comparison Chart Definition Key … [Read more...]
Difference Between Delegates and Events in C#
Delegates and events both play an important role in the event-driven program. The delegates can refer to a method, and it is quite similar to the function pointer in C++. Events notify that some action has been performed. The basic difference between delegates and events is that delegates hold the reference of the methods and event provides a way to access that method using delegates. Content: Delegates Vs Events in C# Comparison Chart Definition Key Differences … [Read more...]
Difference Between Boxing and Unboxing in C#
In C#, all the value types are derived from the class object. So, a reference variable of type object can refer to any other value type. C# introduces two methods to Boxing and Unboxing, which links value type to reference type. The basic difference between Boxing and Unboxing is that Boxing is the conversion of the value type to an object type whereas, on other hands, the term Unboxing refers to the conversion of the object type to the value type. Let us study the other differences between … [Read more...]
Difference Between ref and out in C#
"Ref" and "Out" are the parameter modifiers used in C#. Using ref and out, you can pass any value type by its reference to any method. The reason of passing any value type by its reference introduces the main difference between the ref and out keyword. The ref keyword allows the called method to alter the content of the argument passed to it with ref keyword. The out keyword allows called method to return more than one value at a single call. Let's study the difference between ref and out … [Read more...]
Difference Between Static and Final in Java
Static and final both are the keywords used in Java. The static member can be accessed before the class object is created. Final has a different effect when applied to class, methods and variables. The main difference between a static and final keyword is that static is keyword is used to define the class member that can be used independently of any object of that class. Final keyword is used to declare, a constant variable, a method which can not be overridden and a class that can not be … [Read more...]
Difference Between Interface and Abstract Class in Java & C#
Interface and Abstract class both contribute to "incomplete type" in OOP. Sometimes we need a superclass to define "what to do" but, not "how to do", it's how to do part will be implemented by the derived class according to its need, "interface" provide a solution to this. Sometimes we need a superclass class that defines some generalised structure that can be implemented by derived classes and some specified structure that can be utilised by the derived classes, "abstract class" provides a … [Read more...]
- « Previous Page
- 1
- …
- 6
- 7
- 8
- 9
- 10
- …
- 12
- Next Page »