Questions tagged [difference]

This tag may refer to 1) the difference between two numbers (i.e. the difference between 5 and 10 is 5) or 2) the things that two or more particular objects do not share in common.

Use this tag for questions that deal with either of the following two topics:

  1. The difference between two numbers.
  2. What two or more particular objects do not share in common.

Related tags:

1634 questions
751
votes
12 answers

Differences between Oracle JDK and OpenJDK

NOTE: This question is from 2014. As of Java 11 OpenJDK and Oracle JDK are converging. Are there any crucial differences between Oracle and OpenJDK? For example, are the garbage collection and other JVM parameters the same? Does GC work…
user1340582
  • 17,299
  • 31
  • 104
  • 159
347
votes
19 answers

What is the difference between JVM, JDK, JRE & OpenJDK?

What is the difference between JVM, JDK, JRE & OpenJDK? I was programming in Java and I encountered these phrases, what are the differences among them?
Alireza
  • 4,077
  • 3
  • 17
  • 29
341
votes
17 answers

What's the difference between ViewData and ViewBag?

I saw the ViewBag in MVC 3. How's that different than ViewData in MVC 2?
user469652
  • 39,657
  • 56
  • 119
  • 161
315
votes
10 answers

Java 8: Difference between two LocalDateTime in multiple units

I am trying to calculate the difference between two LocalDateTime. The output needs to be of the format y years m months d days h hours m minutes s seconds. Here is what I have written: import java.time.Duration; import java.time.Instant; import…
Tapas Bose
  • 25,780
  • 71
  • 202
  • 317
296
votes
9 answers

What is the difference between memoization and dynamic programming?

What is the difference between memoization and dynamic programming? I think dynamic programming is a subset of memoization. Is it right?
Sanghyun Lee
  • 17,726
  • 18
  • 88
  • 118
267
votes
20 answers

Get the time difference between two datetimes

I know I can do anything and some more envolving Dates with momentjs. But embarrassingly, I'm having a hard time trying to do something that seems simple: geting the difference between 2 times. Example: var now = "04/09/2013 15:00:00"; var then =…
Leo
  • 7,061
  • 6
  • 26
  • 43
216
votes
8 answers

What is the difference between bottom-up and top-down?

The bottom-up approach (to dynamic programming) consists in first looking at the "smaller" subproblems, and then solve the larger subproblems using the solution to the smaller problems. The top-down consists in solving the problem in a "natural…
Guest
  • 2,539
  • 4
  • 17
  • 16
186
votes
2 answers

“Diff” an image using ImageMagick

How can I get the difference between two images? I have the original image. Someone has written on an exact duplicate of the original image. Now, I need to compare the original to the written on image and extract just the writing in image…
Justin Noel
  • 5,295
  • 10
  • 39
  • 54
170
votes
8 answers

What is the difference between HashSet and List?

Can you explain what is the difference between HashSet and List in .NET? Maybe you can explain with an example in what cases HashSet should be preferred against List ?
pencilCake
  • 45,443
  • 73
  • 211
  • 346
149
votes
8 answers

Difference between IsNullOrEmpty and IsNullOrWhiteSpace in C#

What are differences between these commands in C# string text= " "; 1-string.IsNullOrEmpty(text.Trim()) 2-string.IsNullOrWhiteSpace(text)
Asieh hojatoleslami
  • 2,685
  • 7
  • 28
  • 44
137
votes
6 answers

Difference between HBase and Hadoop/HDFS

This is kind of naive question but I am new to NoSQL paradigm and don't know much about it. So if somebody can help me clearly understand difference between the HBase and Hadoop or if give some pointers which might help me understand the…
Dhaval Shah
  • 1,385
  • 2
  • 9
  • 5
122
votes
6 answers

What's the difference between "squash" and "fixup" in Git/Git Extension?

I've been using Git Extensions for a while now (it's awesome!) but I haven't found a simple answer to the following: Sometimes, when typing a commit message, a make a typo. My friend showed me how to fix it the following way (in Git…
Placeholder
  • 3,699
  • 6
  • 26
  • 34
120
votes
9 answers

Android - Snackbar vs Toast - usage and difference

We have been using just Toasts in our application so far and as we are planning to adopt some new features from Support Design Library I am wondering what's the recommended usage for Snackbar vs. Toast. I have been reading on the google material…
Jakub Holovsky
  • 5,599
  • 5
  • 52
  • 89
106
votes
5 answers

What is the difference between size and count in pandas?

That is the difference between groupby("x").count and groupby("x").size in pandas ? Does size just exclude nil ?
Donovan Thomson
  • 1,855
  • 3
  • 14
  • 21
87
votes
3 answers

Java: what exactly is the difference between NIO and NIO.2?

I don't quite understand how different they are from each other so I have some inquiries regarding these two packages. After looking around a bit on Google, it seems like Oracle decided to update the NIO package with the newer and enhanced NIO.2…
John Huynh
  • 873
  • 1
  • 7
  • 5
1
2 3
99 100