Third for [java] and second for [concurrency]

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

2d
awarded Guru
2d
answered How to reuse Singleton pattern?
2d
comment java.lang.OutOfMemoryError: GC overhead limit exceeded when creating data structure for 1 million elements
I would assume having more memory would help. Many mobile phones have 2 GB these days. You can buy 16 GB for about $200.
2d
answered Can I use a specific bit version (32 or 64) of java for compilation through the terminal?
2d
comment C Memory leak with packetsender socket
A quick google found gist.github.com/alexcheng1982/7108987 I haven't tried it.
2d
comment Getting Date Time in Unix Time as Byte Array which size is 4 bytes with Java
@Jesper true, although with escape analysis in Java 8 the ByteBuffer can be allocated on the stack which is not so expensive.
2d
answered Getting Date Time in Unix Time as Byte Array which size is 4 bytes with Java
2d
comment C Memory leak with packetsender socket
Have you tried libpcap wrapper library like jnetpcap.com? You can do this using the library without writing this low level code. i.e. no C code is required.
2d
answered Transferring byte[] over sockets
2d
comment Java8 Supplier that is an optional Consumer
@игор Not really, but if it bothers you, you could use a local variable, if the value doesn't change.
2d
revised Java8 Supplier that is an optional Consumer
added 120 characters in body
2d
comment Java Package Import Alias
I think it would be much simpler to give different classes, different names. ;) i.e. instead of aliasing the classes, rename them instead.
2d
comment Java8 Supplier that is an optional Consumer
@Jesper I wouldn't use a framework to replace a one liner. IMHO That is a extreme overkill.
2d
answered Java8 Supplier that is an optional Consumer
2d
answered How to check string length range in a short from in java?
2d
comment Best way to implement multiple concurrent threads that return results in the middle of execution?
@Max The thread which collects the results can put all the tasks into a queue and then wait on the results in a List of Future. If you have only about 10,000 tasks you might not need to generate them as you process them, but generate them at the start.
Mar
25
awarded Nice Question
Mar
25
comment How to produce a True UUID in Java?
Define "prefect"? Computers are fast but not that fast. If you generate 2^64 UUIDs then there is a reasonable chance that two will be the same, but you would need billions of computers to produce these.
Mar
25
comment How to converted timestamp string to a date in java
I suggest parseLong instead of valueOf as you need a long rather than a Long
Mar
25
comment Fifo buffer that alow null elements
@GligorShijakovski I would try reading the data progressively.
1 2 3 4 5