Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

Java

IntelliJ IDEA way of editing multiple lines

by IT Nursery

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

Tags android-studio, ide, intellij-idea, java, text-editor

Difference between null and empty (“”) Java String

by IT Nursery

What is the difference between null and the “” (empty string)? I have written some simple code: String a = “”; String b … Read more

Tags equals, java, null, referenceequals, string

How to use MDC with thread pools?

by IT Nursery

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

Tags java, logback, logging, mdc, slf4j

What’s the difference between session.persist() and session.save() in Hibernate?

by IT Nursery

Can anyone tell me what’s the advantage of persist() vs save() in Hibernate? 10 Answers 10

Tags hibernate, java

Difference between solr and lucene

by IT Nursery

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

Tags java, lucene, solr

How to specify function types for void (not Void) methods in Java8?

by IT Nursery

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

Tags java, java-8

How does Java Garbage Collection work with Circular References?

by IT Nursery

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

Tags garbage-collection, java

How to encrypt String in Java

by IT Nursery

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

Tags encryption, java

How do I convert a byte array to Base64 in Java?

by IT Nursery

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

Tags arrays, java, string

Difference between “on-heap” and “off-heap”

by IT Nursery

Ehcache talks about on-heap and off-heap memory. What is the difference? What JVM args are used to configure them? Best Answer 6

Tags ehcache, heap-memory, java, memory, off-heap
Post navigation
Older posts
Page1 Page2 … Page327 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery