Tagged Questions
0
votes
0answers
133 views
Storing more than 85000 strings in ArrayList [migrated]
I don't think this question is asked before, there is some clues(google search) that ArrayList can hold any size of data if JVM allows it to. The thing is I need to store some url links in arraylist ...
1
vote
5answers
401 views
Java heap space
In Java/JVM, why do we call the memory place where Java creates objects as "Heap"?
Does it use the Heap Data Structure to create/remove/maintain the objects?
As I read in the documentation of Heap ...
2
votes
1answer
230 views
Does current JIT optimize generated machine codes for branch prediction based on runtime statistics?
Some JVMs would compile Java byte code into native machine code. We know that there are lots of optimizations we could apply for that. Recently, I also learn that a branch operation may block the CPU ...
1
vote
3answers
149 views
Java Terms that are Plagued with Vaguery [closed]
What's the difference between a Java Process (what your OS sees) and a JVM? Are they one in the same or are they actually different?
How are the JRE and JDK different (in purpose and file content), ...
6
votes
1answer
639 views
How can Java be improved so that it no longer needs to perform type erasure?
The official Java tutorial on generics explains type erasure and why it was added to the compiler:
When a generic type is instantiated, the compiler translates those types by a technique called ...
10
votes
5answers
1k views
Approaching Java/JVM internals
I've programmed in Java for about 8 years and I know the language quite well as a developer, but my goal is to deepen my knowledge of the internals. I've taken undergraduate courses in PL design, but ...
-4
votes
4answers
417 views
Are Java developers becoming less important as JVM/JIT capabilities grow?
(I am asking this from a low latency perspective, but I guess the question applies in normal business domains).
I am deciding whether to try and specialise in C++ or Java for low latency.
My issue ...
2
votes
4answers
913 views
Learning more about Java Hotspot/JVM and JIT? [closed]
On SO I was told there aren't really any good sources to learn about the JVM (Hotspot in particular) and JIT.
Is this true and if not, could I have some recommendations for books/websites/oracle ...
2
votes
4answers
368 views
Static methods on a web context
What happens when concurrent requests call the same static Java method running on an application server?
Say that a method run takes 2 seconds and receives 100 calls in a given second. The method ...
3
votes
1answer
104 views
What is richochet frames based hotspot jvm?
In order to implement JSR 292, a.k.a. invoke dynamic, something called richochet frames is introduced into the hotspot vm. I'd like to know more about it, such as invoke dynamic itself, how richochet ...
7
votes
3answers
495 views
How safe it is to do minor JVM upgrades?
I have been working on the JVM for years and I have very rarely experienced a JVM crash ... that is until approx 6 months ago.
Since that I have experienced approximately 5 JVM crashes resulting ...
9
votes
2answers
593 views
Java and JVM license
Does Java license allow other companies to create their own versions of Java language or just implement it accurately? Same question about JVM.
I heard about Sun suing Microsoft for changing their ...
8
votes
6answers
2k views
Is there a clear leader amongst JVM-based languages?
What is the current status of these projects, and has any one (or two) emerged as a clear leader?
To demonstrate my motives for asking this question, cast your mind back several years. Prototype and ...
2
votes
3answers
980 views
What is the difference between instantiating and loading a class in Java?
In Java world, there are some scenarios where I see developers used to load the class rather than instantiation. What is the difference between instantiating and loading a class?
0
votes
3answers
961 views
Anyone know a decent JVM profiling tool for IBM JVM on AIX?
I am tired using hprof and some lame tools that are available in AIX for JVM profiling. None of the tools like Netbeans Profiler and visualvm works on JVM on AIX. It will be great if anyone knows a ...