Most answers for [java] and [jvm]

Architect for Chronicle Software http://chronicle.software

Blog has had 3 million hits http://vanillajava.blogspot.com

Java Champion

5h
comment java symbolic file link has zero size
@Bohemian sure , just uploading it all now. Shouldn't crash SO. ;)
8h
comment Java sorting a collection of datetime values
You need to write a Comparator<DateTime>
8h
answered Java fails to parse a hex string as an int
8h
comment How to convert ZonedDateTime to Date?
@MilenKovachev you can delete a comment, but it's not a silly question.
8h
comment How to convert ZonedDateTime to Date?
@MilenKovachev A ZonedDateTime is an instance of Temporal
8h
revised How to convert ZonedDateTime to Date?
added 34 characters in body
9h
answered How to convert ZonedDateTime to Date?
9h
comment Convert via reflection retrieved object to string (how to iterate over multiple class types?)
You can write getterMethod.getReturnType() == Integer.class, To convert to a String you can call toString() and this wlll work well for many types.
9h
comment Java: new, inheritance and objects number
The keyword new creates one object in byte code. The exception being multi-dimensional arrays.
9h
comment How to selectively redirect system.out to files according to the packages
This might be helpful. stackoverflow.com/questions/11187461/… You can redirect System.out/err to slf4j and have it route the messages based on package.
9h
comment New to Java, reached end of file while parsing
Sounds like you get this error because you read all the data....
10h
comment Scientific notation with bigDecimals and decimalFormat
You can choice the format you want based on the range of values. e.g. (a >= 0.1 ? ... : ...)
10h
comment How to use Soot process java source code
I suggest you read the error message so we can work out what it is trying to tell you.
12h
revised junit Test for the exception method
added 6 characters in body
12h
answered junit Test for the exception method
15h
comment JAVA SE sertification programm
What matters is your enquiring mind, and ability to problem solve. Your knowledge in Java will help and while you don't have experience you should have enthusiasm.
17h
comment Control linux daemon using Java
yes, but it depends on the protocols the daemon supports. What services/APIs does the daemon have?
17h
comment Java Program Based on Time Complexity. Achieve N(LOG(N))
For us to make an effort and help you for free, you must first demonstrate you are will to make most of the effort yourself. We want to help you learn how to program, not help you learn how to get others to do your work for you.
1d
comment Java Poor Performance GC Lots of Objects
You appear to be getting in the order of 16 second full collections and you having one every 10 - 20 s. I suspect your object are creating far more than one object each. What forma of serialization are you using as Java Serialization is one of the most expensive and produces the most garbage.
1d
comment Why is char[] preferred over String for passwords?
@chux you can use a zero width character, though this might be more confusing than useful. Its not possible to change the length of a char array without using Unsafe. ;)
1 2 3 4 5