r/java • • Feb 06 '19

What is the JVM? Introducing the Java virtual machine

https://www.javaworld.com/article/3272244/core-java/what-is-the-jvm-introducing-the-java-virtual-machine.html
0 Upvotes

6 comments sorted by

17

u/CorrectProgrammer Feb 06 '19

I find this article very confusing, especially the parts about Java being the first language to support multiple platforms (I think interpreted languages such as Python were first) and garbage collection: it was made available in Lisp ~40 years earlier.

13

u/SuperFluffyPunch Feb 06 '19

Just another article written by an uninformed person masquerading as an 'expert'. Fake it till you make it.

7

u/lpreams Feb 06 '19

stands as one of our greatest examples of coding kung fu

The warning sign was helpfully right in the first paragraph

6

u/ford_madox_ford Feb 06 '19

Appears to be written by a web dev who knows a tiny amount of Java, which apparently allows him to call himself an architect. This article by the same author has some headache-inducing code. Why is path.getSize(true) called repeatedly? Does the result change for each invocation?!? Why not use a switch statement? Is it really necessary to clutter up example code with if (log.isTraceEnabled()) { log.trace(... every 5 lines? Why does CommonService.getCount return a boxed long - when would the answer ever be null? Is it really a good idea to log from within an equals method?

6

u/pushthestack Feb 06 '19

Even for saying nothing at all (no mention of a JIT!) he still gets things wrong. Newbies, don't rely on anything in this article.

5

u/cogman10 Feb 07 '19

I was going to write a big long post about how bad this is... but suffice it to say, the author is an idiot with no real knowledge of what or how the JVM works. This article is full of fluff, non-descriptions, and incorrect information. All written with absolute confidence and authority.

You'll do better to read the wikipedia article on the JVM.