Java Tutorials, Tips & Tricks
Java is a programming language originally developed by Sun Microsystems and released in 1995 as a core component of Sun Microsystems’ Java. It is platform independent.
Recently while running Tomcat under Eclipse for one of the web application I was getting Java Heap memory related error java.lang.OutOfMemoryError. What needs to be done here basically is to increase the
jvm heap size. So for increasing the JVM Heap Size of Tomcat in Eclipse we have to set few VM arguments of the tomcat.Follow ...
Garbage collection is a way in which Java recollects the space occupied by loitering objects. By doing so, it ensures that your application never runs out of memory (though we cannot be assured that the program will ever run out of memory).
Watch this ad. Really, Technology changes the way we live our lives.
Thought of sharing following code with you all. It is a small code snippet that uses SMTP in Java to login into GMail and send email using ones GMail account.String host = "smtp.gmail.com"; String from = "username"; String pass = "password"; Properties props = System.getProperties(); props.put("mail.smtp.starttls.enable", "true"); // added this line ...
If you are writing Java classes and distributing them over the Internet, you should know that people can reverse-engineer, disassemble, or
decompile your classes into Java source code. One of such decompiler is JAD. In
this article we discuss about the usage of JAD to decompile the
Java class.So to make the job ...
Static Import is a new feature added in Java 5 specification. Java 5 has been around the corner for some time now, still lot of people who are new in Java world doesn't know about this feature.Although I have not used this feature in my work, still it is interesting to know about.What is ...
One of the reason why Java language has been so useful and used widely is the set of APIs that comes with the language (and 3rd party APIs like
iText etc). Using these APIs one do a whole lot unimaginable stuff.Java Reflection API are one of such APIs that extend the horizon of a Java ...
A lot of time I have to convert ArrayList to Arrays in my Java program. Although this is a simple task, many people don't know how to do this and end up in iterating the java.util.ArrayList to convert it into arrays. I saw such code in one of my friends work and I thought to share this so that people don't end up writing easy ...
Few days back I came to know about a different way of initializing collections and objects in Java. Although this method of initialization has been there in Java since quite a few years now, very few people actually knows about it or have used it in their code. The technique is called Double Brace Initialization technique ...
REST is a term coined by
Roy Fielding in his Ph.D. dissertation to describe an architecture style of networked systems. REST is an acronym standing for Representational State Transfer. Representational State Transfer(REST), a software architecture style used in developing stateless web services. While this style may be used to describe any distributed framework that uses ...