Third for [java] and second for [concurrency]

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

5h
awarded Enlightened
5h
awarded Nice Answer
17h
comment String Loop Java
Have you tried stepping through the code in your debugger? What exactly is your problem? BTW you don't need to call System.out.flush();
17h
comment Monitor nonPagedPool (Memory) in Java
Do you mean this? blogs.technet.com/b/markrussinovich/archive/2009/03/26/… Non paged pool is only used by the kernel and drivers on windows and is not accessible to Java. You need to find a command line tool to tell you this.
17h
comment Java inheritance hierarchy -- implementing an interface a super-class is implementing
@user3880721 no, but best practices change over time. When it was added, the author might not have thought it was better to not be redundant.
2d
comment Java inheritance hierarchy -- implementing an interface a super-class is implementing
@user3880721 no particualrly good reason. Someone added it once and they don't remove something once it is added for fear of breaking backward compatibility
2d
answered Java inheritance hierarchy -- implementing an interface a super-class is implementing
2d
comment Conversion of decimal coordinates for decimal degree
According to this, en.wikipedia.org/wiki/Decimal_degrees your original numbers are in Decimal Degrees already. Decimal Degrees are between -180 and +180.
2d
comment Dynamic or runtime instance level metadadata in Java
Instead of adding a field, you could add a method which is called if required. You could have an interface like Expires
2d
comment Dynamic or runtime instance level metadadata in Java
+1 You can store meta data as a String and parse it however you like e.g. method names with arguments/expressions as well as classes.
2d
comment Does Oracle SQL database optimize by value?
@AHungerArtist In theory, theory and practice are the same, in practice they are not. So often I think that something should or should not make a difference, but when I test it the results are not what I expected. (They match more than half the time ;)
2d
comment Does Oracle SQL database optimize by value?
@AHungerArtist Conversely, you could know the answer that it does some caching or not, but knowing this might not make any difference in a real use case. There is many levels of aching so you can be sure there will be at least disk caching, some query caching, but how much difference it makes can only be determined by measuring it.
2d
comment Does Oracle SQL database optimize by value?
If you are finding it hard to time a few queries with different values, you are doing something wrong. After you have done the first one it should take you 5 minutes to try it repeatedly and with different values.
2d
comment Does Oracle SQL database optimize by value?
How about to try it to see what difference it makes?
2d
comment Files being locked though RandomAccessFile.close() was called
You will have to work out the cause of the problem rather than working around it.
2d
comment Files being locked though RandomAccessFile.close() was called
You might find that rename and delete have a problem, since it does the same thing.
2d
comment Files being locked though RandomAccessFile.close() was called
Do you know that renameTo is actually a problem, ie. is it worse than copy and delete as delete is system dependant too.
2d
comment Where to place a properties file so the java command will see it in the classpath
@user1052610 you specify the directory without a * to say you also want the files in that directory.
2d
answered Where to place a properties file so the java command will see it in the classpath
2d
comment java ExecutorService, changing fixedsize
@user3773673 You can resize the limit up and down as above. If you have tasks you know are long and others you know are short, I would use two pools say a pool of 3 for long tasks and a pool of 2 for short tasks. This way a short task will never be waiting for a long task. If you have five long tasks in the queue and you add a short task, it will wait for a long task to finish even if you resize to 5. If you have 5 tasks in one pool and add a short task to an empty pool, it will start straight away. Then there is no need to be dynamically resizing pools.
1 2 3 4 5