Skip to main content

Questions tagged [jvm]

A Java virtual machine (JVM) is a virtual machine that can execute Java bytecode. It is the code execution component of the Java platform.

Filter by
Sorted by
Tagged with
1 vote
2 answers
260 views

I know that a lot of interpreted higher level languages like to abstract a lot of things and therefore cannot directly be compared with lower level constructs. For example in some languages primitive ...
tweekz's user avatar
  • 237
-1 votes
2 answers
2k views

As far as I understand, the best practice for programmatic access to the version of a Java application is to: Specify version via build system (e.g. in Gradle). Include the version string as a ...
andrybak's user avatar
  • 113
0 votes
2 answers
2k views

I was reading about erlang when I read that it is platform-independent, using BEAM as the VM, now I understand that a VM compiles the byte code to machine code and this makes that language machine-...
buddygyan's user avatar
  • 129
8 votes
1 answer
277 views

I am trying to draw diagrams that show the difference between system virtual machines and Java virtual machines. The first two images looks correct to me. But I don't know how to draw the third. ...
john c. j.'s user avatar
1 vote
1 answer
976 views

When building parallelized applications using Java, a developer sometimes finds himself with a thread being blocked indefinitely because of a four-year-old bug in the spring-bean-web-rest-foo-bar-...
Markus Appel's user avatar
-2 votes
2 answers
759 views

Is it, at least theoretically, possible to convert a Java application into native code that can be run by something else written in Java? One example of this could be a Minecraft Spigot server. You ...
User's user avatar
  • 3
-2 votes
1 answer
234 views

TL;DR How is the new .NET approach to being a multi platform framework better than what Java did long ago? What are the key differences in the implementation? What are the advantages and disadvantages ...
PedroC88's user avatar
  • 111
4 votes
3 answers
4k views

I was faced with this question recently for the different types of heap memory available in Java. I couldn't find much information online. Are there different types of heap memory available in Java ?...
jgm's user avatar
  • 151
7 votes
1 answer
3k views

I have 2 JVMs on the same machine that I want to pass about 1Mb of (serializable) data between ideally in under 5 ms. Under load, using HTTP to localhost takes about 70ms average. I tried hazelcast, ...
Bohemian's user avatar
  • 2,076
1 vote
0 answers
89 views

In the past couple of months I've worked with both Apache Spark and Druid for some projects. As I've gone through the process of learning how to use these tools, I've spent some time reading through ...
dmux's user avatar
  • 151
-3 votes
3 answers
2k views

Im in my first week of college majoring in computer science. Can java source code be directly executed by JVM?
ctedesco17's user avatar
3 votes
2 answers
2k views

If I want to allocate a struct in C, #include<stdio.h> typedef struct container { int i; } Container; int main() { Container *ptr_to_container; ptr_to_container = (Container *) ...
jado's user avatar
  • 141
3 votes
1 answer
253 views

I am a noob at JVM internals. Can someone explain what happens at Java interpreter level when IncompatibleClassChangeError is thrown? I am facing an issue similar to the one described here: https:...
xerocool's user avatar
152 votes
2 answers
92k views

JVM developer here. Lately I've seen banter on IRC chat rooms and even in my own office about so-called "shaded" Java libraries. The context of the use will be something like: "Such and so provides ...
smeeb's user avatar
  • 4,970
11 votes
8 answers
2k views

Java is often praised for its amazing portability, which I presume is because of the JVM. My question is what stops C from being being compiled/interpreted/JIT'ed.., if so, C can also be write once ...
SphericalCow's user avatar
4 votes
1 answer
619 views

Section 2.11.1 of the JVM 8 Specification includes the words: In other words, the instruction set is intentionally not orthogonal. From my perspective, that implies that the Java bytecode ...
kd8azz's user avatar
  • 143
2 votes
1 answer
2k views

My understanding is that the JVM specification only defines the behavior of a garbage collector, but does not provide implementation details. This means it is up to the JVM implementation to build the ...
smeeb's user avatar
  • 4,970
35 votes
5 answers
14k views

I just learned about Scala yesterday, and I'd like to learn more about it. One thing that came to mind, however, from reading the Scala website is that if Scala runs on the JVM, then how is it ...
Mirrana's user avatar
  • 1,077
3 votes
1 answer
2k views

I know that the JVM has some JVM HotSpot memory which is further divided into three areas: Java Heap Permanent Generation Space Native Heap (C-Heap) I know that Java has automatic garbage collection ...
Sahil Chhabra's user avatar
2 votes
1 answer
2k views

I am trying to understand the JVM memory model. In particular, I would like to understand whether it would be feasible to have zero-copy (de)serialization libraries, such as Cap'n Proto or FlatBuffers....
Andrea's user avatar
  • 5,425
16 votes
3 answers
34k views

I have a following class class Student{ int rollNumber; int marks; public void setResult(int rollNumber, int marks){ this.rollNumber=rollNumber; this.marks=marks; } public void ...
Harish_N's user avatar
  • 649
3 votes
4 answers
3k views

The required user interface is fairly simple; basically, two tables that "interact with each other", e.g. certain rows in one table get highlighted when a row in the other is clicked, plus maybe a ...
wxd's user avatar
  • 41
12 votes
1 answer
8k views

What are the key differences between pattern matching in these two languages? I am not referring to syntax, but capability, implementation details, range of use cases and necessity. Scala ...
kurofune's user avatar
  • 290
6 votes
6 answers
12k views

The definition of interpretation (correct me if I'm wrong) is parsing code like so: 1- Translate currently parsed line to some intermediate language. 2- Run the translated line. 3- Move to the next ...
NPElover's user avatar
  • 181
3 votes
2 answers
404 views

I can understand the benefits of Java running on a JVM. Portability. Nice simple reason. But I have always been puzzled as to why Microsoft brought out their own version of a JVM - .NET. C# is ...
user619818's user avatar
  • 1,813