Getting data from the computer clipboard
0If your Java application needs to use clipboard for performing copy, cut and paste operations regarding the same. In this article, I will discuss what all types of clipboards are available to Java program and also provide the sample code for performing the above mentioned More >
JSP Objects / Implicit Objects in JSP
0JSP is converted into servlet when the server performs the translation of JSP. After the translation has been done, the resulting servlet is then compiled and converted to .class file. When the translation of JSP to servlet happens, some new variables are created by the More >
Android Interview Questions without Answers
0Here we are sharing some of the very frequently asked android questions for interviews. I am not providing the answers as it will be reinventing the wheel. Just pick up a question and search on Google and you will get the answer easily. If still you don’t get the answer easily, More >
Advantages of Immutability
0Immutability is all about not allowing the updation of objects which have been created once. There are a number of advantages when a class is made immutable in Java. Here in this article, we will list some of the advantages for using immutability and making class More >
Configure tomcat to enable GZIP compression
0The use of zip for server files helps in improving the performance of the web application as it reduces the amount of data which needs to be downloaded from the server.
The following steps can be used for enabling zip in HTTP connector in tomcat server.
1) Edit More >
How to pre-compile JSP?
0The JSP lifecycle involves converting the JSP page to servlet and then compiling the servlet to a class file. Usually the translation and compilation of JSP happens when the first request comes to it. But most of the web and application servers support the pre-compilation of More >
Sending AJAX request using jQuery
0In this article, we will discuss about jQuery and Ajax
IntroductionAJAX has become an integral part of web applications and there are numerous benefits of using Ajax in web applications. An Ajax request involves sending partial page data to the server for processing and More >
How to Create an Immutable Class
0Immutability is an important aspect about the overall design of a Java application. By making a class as immutable, one can easily get around various issues faced in an enterprise level application. Various uses for creating an immutable classes and immutable More >
Create JAR file in Java
0A Jar file contains a number of other class files and hence acts as a single bundle for all the child class files present in it. This is a Jar file tutorial for creating jar files by using command line, eclipse and Java program.
Jar files internally are same as zip More >
Java Databse Performance Tips
0Performance is an important aspect of Java applications and it is usually the network trips which result in bottlenecks in the applications. The following tips/best practices should be followed for making the applications to perform faster operations with More >
Abstract classes in Java
0When a generic type has to be used then it can be either a abstract or concrete class. For abstract classes, there can be concrete as well as abstract methods present in the class. The purpose of abstract classes is to stop the instantiation of generic type but More >
Database Connection Pooling in Tomcat
0It is a good practice to use connection pooling support which is provided by the modern servers instead of creating and disposing the connections by writing plain old JDBC code. There are some basic steps to create database connection in Java applications which include More >
Request Handling Using FrontController Pattern
0Front controller design pattern is an integral part of every application which is based on MVC. The front controller pattern helps in collecting all requests coming from a web application by a single servlet. The controller servlet then based on More >
How to search text in files recursively in Java
0In word processing or text analyzing applications, there is usually a requirement for searching text between a number of files or directory structure. The following program shows how text can be searched recursively in files by using a Java More >
Externalizable vs Serializable
0Externalizable and Serializable are marker interfaces which are associated with the serialization process. While serializable makes a class to be serialized, Externalizable is used for making the serialization operation to be custom.
Serializable InterfaceThe More >
Various Log4J Levels
0Adding logger to an application involves using a third party logging framework or using the logging classes of the JDK. There are multiple levels at which logging can be performed and these levels signify the purpose for which logging is to performed. The various purposes More >
Method Overloading (function overloading) in Java
0For any operation to be performed in a Java application, methods are used which contain the logic for performing the required operation. Every method is given a name and should be named as per the operation being performed by it. But Java provides More >
String vs StringBuffer vs StringBuilder in Java
0Here we will discuss the String, StringBuffer and StringBuilder classes in Java.
String classString class in Java is used for performing string operations which is actually the operations performed on the character array present in the String class. More >
serialversionuid in Java Custom Serialization
0Serialization can be used to persist the state of an object in stream. But serialization of objects of a class ties the class to the oldest implementation of the class because once the objects have been serialized then changing the class’s implementation More >
Code Review Checklist
0Code reviewing is a good practice and helps in improving the code quality and avoid un-neccessary bugs resulting from poor coding practices. When a experienced person is reviewing the code then there are a number of check points which should be cross checked. This post lists More >
