IntelliJ IDEA way of editing multiple lines
I’ve seen this done in TextMate and I was wondering if there’s a way to do it in IDEA. Say I have the … Read more
I’ve seen this done in TextMate and I was wondering if there’s a way to do it in IDEA. Say I have the … Read more
What is the difference between null and the “” (empty string)? I have written some simple code: String a = “”; String b … Read more
In our software we extensively use MDC to track things like session IDs and user names for web requests. This works fine while … Read more
Can anyone tell me what’s the advantage of persist() vs save() in Hibernate? 10 Answers 10
I know that Lucene and Solr are 2 differents Apache projects that are made to work together, but I don’t understand what is … Read more
I’m playing around with Java 8 to find out how functions as first class citizens. I have the following snippet: package test; import … Read more
From my understanding, garbage collection in Java cleans up some objects if nothing else is ‘pointing’ to that object. My question is, what … Read more
What I need is to encrypt string which will show up in 2D barcode(PDF-417) so when someone get an idea to scan it … Read more
Okay, I know how to do it in C#. It’s as simple as: Convert.ToBase64String(byte[]) and Convert.FromBase64String(string) to get byte[] back. How can I … Read more
Ehcache talks about on-heap and off-heap memory. What is the difference? What JVM args are used to configure them? Best Answer 6