As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Can u suggest some articles or books about JVM internals: how it allocates memory, handles object inheritance, garbage collection, how it executes byte code and so on.
You might have a look at "Inside the JVM". Unfortunately I'm not aware of the existence of any new books on the subject.
Cliff Click did a great Google talk earlier this year on the things that a JVM does. It's certainly not everything that you'd need, but is a really great starting point:
http://www.youtube.com/watch?v=uL2D3qzHtqY&feature=player_embedded
I'd also add that if you don't already understand bytecode, then that's going to be pretty useful:
http://arhipov.blogspot.com/2011/01/java-bytecode-fundamentals.html
Have a look at "The Java Virtual Machine Specification": http://java.sun.com/docs/books/jvms/
Also helpfull: The Hotspot wiki OpenJDK wiki
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Does someone know if Guava or Java8 in the future will provide persistent collection-implementations inspired by more functional implementations as for instance in Clojure or Scala (providing snapshots, efficient modifications due to sharing of tree-structures and so on)?
With regards to Guava, there is a discussion on the project's discussion group here, which ends with the project lead (Kevin Bourrillion) stating his opinion that Guava would not be the correct library for persistent collections.
I don't believe there's anything like this scheduled for Java 8. A description of the plan for Java 8 here, which states the main features are Project Jigsaw, and Lambda. There will be other inclusions, but no mention of persistent collections.
Check out PCollections: http://code.google.com/p/pcollections/
I expect it's the closest to what you're looking for.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I have been using Google CodePro Audit for java for few days now and i'm amazed in how much it helped me improve my code.
There are some rules which never crossed my mind and some that i don't really understand the consequences.
For instance, i always though that using utility methods were a good pratice. But there is a rule in there which states "Utility methods should be avoided except under certain circumstances" . Can anyone elaborate on that ?
Also, post your opinions in which are the MUST rules to follow using codePro.
Thank You.
Regards
Bruno
I think the reason for the warning is that utility methods take away from the Object Oriented nature of Java programming.
However, I don't think I've ever worked on a Java project that didn't have at least one utility class containing only public static methods.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I don't know much of either languages, but what would be better for writing applications that deals with the following. Right now, I use PHP, but I'm looking to see what would be the next ideal language to dig into, if the needs arise.
MySQL
off-line data processing of CSV, XML, etc. files
web applications (dynamic websites)
I understand that this could quite possibly be subjective.. so if you could just pitch in some pros and cons, that would be superb. TIA!
If you come from PHP, JAVA is probably a bit easier than C++ for you.
If you are looking to make dynamic websites with a programming language you should look into C#
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I was reading this article on Java Threads: http://java.sun.com/docs/books/jls/second_edition/html/memory.doc.html, which I think is must read for any Java developer. What are the other must read articles about Java Threads or threads in general?
I found the book Java Concurrency in Practice a good resource. It teaches you everything you need to know about threads and concurrency in Java. I highly recommend it.
http://linux.die.net/man/7/pthreads + do implement something
You may find article Java Thread Gate Pattern useful.
For Java Threading,
Java Concurreny in Practice.
Taming Java Threads
I find articles in IBM developer works very well written. Try search 'thread' in that site:
http://www.ibm.com/developerworks/views/java/libraryview.jsp?sort_by=&show_abstract=true&show_all=&search_flag=&contentarea_by=Java+technology&search_by=thread&topic_by=-1&industry_by=-1&type_by=All+Types&ibm-search=Search
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Which readline-like library for Java do you use? By 'readline' like library I mean library for editing console input, with support for history, tab-completion, and stuff like this. I'm looking for one, and I cannot choose from so many choices (jLine -- unmaintained, java-readline -- last release on 2003, others?)
I've used JLine to add history, etc. to a Clojure REPL (JVM process) when executed from the command line. It just magically worked and worked well, so I never bothered to investigate anything else.
jruby has an internal readline you could probably call out to.