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:

1970 questions
827
votes
10 answers

What's the difference between a module and package in Python?

What's the difference between a module and package in Python? See also: What's the difference between "package" and "module"? (for other languages)
Dave
  • 9,033
  • 4
  • 21
  • 20
816
votes
13 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
  • 19,151
  • 35
  • 115
  • 171
385
votes
12 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
  • 28,796
  • 74
  • 215
  • 331
373
votes
22 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,347
  • 3
  • 20
  • 31
366
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
  • 48,855
  • 59
  • 128
  • 165
356
votes
12 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
  • 21,644
  • 19
  • 100
  • 126
282
votes
22 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,379
  • 6
  • 28
  • 44
269
votes
9 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
  • 3,097
  • 5
  • 20
  • 16
215
votes
3 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,945
  • 10
  • 44
  • 59
194
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
  • 51,323
  • 85
  • 226
  • 363
193
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
  • 3,240
  • 7
  • 31
  • 45
178
votes
8 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
  • 4,651
  • 6
  • 33
  • 35
175
votes
3 answers

window.location.href vs window.location.replace vs window.location.assign in JavaScript

What is the difference between window.location.href="http://example.com"; window.location.replace("http://example.com"); window.location.assign("http://example.com"); I read in many forums that window.location.assign() just replaces the current…
milan_9211
  • 1,919
  • 3
  • 13
  • 5
150
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
  • 2,375
  • 3
  • 17
  • 25
150
votes
5 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,515
  • 2
  • 10
  • 5
1
2 3
99 100