When an exception occurs, this code snippet will print the stack trace of the exception to a string. This way, the exception stack trace at runtime can be recorded in log file.
public static String getStackTrace(Throwable t)
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw, true);
Taken from Devx
Monday, February 23, 2009
https://singztechmusings.wordpress.com/2011/07/11/ulimit-how-to-permanently-set-kernel-limits-in-linux/ app soft nofile 16384 * hard...
Question: Which of the following best describes a sprint? The correct answer was: A sprint is a condensed amount of time in which a devel...
Recently i was faced with a scenario where user would select a few files from a list and click download. All the downloads should start in...
import java.text.SimpleDateFormat ; import java.util.ArrayList ; import java.util.Date ; import org.apache.http.HttpResponse ; impo...