Third for [java] and second for [concurrency]

First to get the silver [jvm] badge, second to gold [performance] badge.

2d
answered Printing numbers divisible by 2 but not 3?
Sep
17
comment How to Determine Java Heap Size On Application Startup
The only way to specify the size at runtime is to have it start another JVM with the desired maximum heap size.
Sep
17
comment How does the arrow operator work internally in java 8?
@LuiggiMendoza cheers. :)
Sep
17
answered How does the arrow operator work internally in java 8?
Sep
17
comment Reading 10-bit fixed point float in JAVA
Where does the (1.0 / i) come from?
Sep
17
answered Reading 10-bit fixed point float in JAVA
Sep
17
comment changing address of object in Java (pass-by-value again??)
@brainstorm pass-by-value is passing a copy of what the value is. What is confusing is that Object o in Java is a reference. This means when you pass p you pass the reference by value. What you have to put out of your mind is that notion that when you see Object p it is an instance, because it is not in Java.
Sep
17
comment changing address of object in Java (pass-by-value again??)
@brainstorm Object* is a pointer which might refer to be an Object. This pointer has to be non-const so you can't do Object A, B; swap(&A, &B);
Sep
17
answered changing address of object in Java (pass-by-value again??)
Sep
17
awarded Nice Answer
Sep
17
comment changing address of object in Java (pass-by-value again??)
In C++ you would need to write swap(Object&*A, Object&*B) for it to work you expected otherwise swap(Object*A, Object*B) behaves the same as Java and swap(Object A, Object B) pass the object by value which you can't do in Java.
Sep
17
comment changing address of object in Java (pass-by-value again??)
You can't change the location of an object. In C++, you can change an argument to make it point to a different object, in Java you cannot.
Sep
17
comment Java memory usage in inheritance
There is only one header and only one object. The fields of Bar are immediately after the fields from Foo in memory.
Sep
17
comment How can I find the Square Root of a Java BigInteger?
@skomi Correct, the number needs to be between 5e-324 and 1e308 (approx)
Sep
16
comment How can I make sure a thread is completed its task,then only new Thread can start in java?
If you want two actions to be perform sequentially, you should perform them in the same thread.
Sep
15
comment How do I make a runnable jar file that uses a non default package
You have to define a Main-Class: in your MANIFEST.MF file.
Sep
15
answered Java: Setting time of object creation
Sep
15
comment String comprasseed and expand
What have you tried and what are you having trouble with? I suggest you start with what you can do and ask a specific question when you get stuck.
Sep
15
comment Best way to compare two dates in Java (day criteria)?
@Renatinn JSR-310 which is based on this library is in Java 8. You could try a back port of JSR-310 which you can drop in Java 8.
Sep
15
revised Formatting time intervals with localization in Java
deleted 21 characters in body
1 2 3 4 5