Sometime you may face error “Could not find or load main class org.gradle.wrapper.GradleWrapperMain” while working with Gradle project which is very difficult to find out the root cause of the…
Sometimes users deal with “sun.security.validator.ValidatorException: PKIX path building failed” with the exception and don’t know how to solve the issue. Problem: This error occurred usually when we try to consume…
When we write the number in excel, it automatically converts in the exponential format and then try to get the values in Java using Apache POI API, it comes in…
In this blog, we will show you how to read excel file using Apache POI (Poor Obfuscation Implementation) library which is very popular amongst the available library. Apache POI library Apache…
Below is the program that shows how to read file from SFTP server using java JSch API is widely used for connecting a SFTP using Java. Download JScp library from…
In the prototype pattern, a new object is created by cloning an existing object. The prototype pattern can be a useful way of creating copies of objects. One example of…
A Factory Pattern or Factory Method Pattern says that just define an interface or abstract class for creating an object but let the subclasses decide which class to instantiate. In…
Singleton Pattern says that just”define a class that has only one instance and provides a global point of access to it“. In other words, a class must ensure that only…
Design Patterns are very popular among software developers. A design pattern is a well described solution to a common software problem. Sensible use of design patterns results in increased code…
JNDI style is typical when using an application server(Weblogic, JBOSS) or a web container(Apache Tomcat). Here’s a example of the lookup Datasource created in Server. import java.sql.Connection;import java.sql.SQLException;import javax.naming.Context;import javax.naming.InitialContext;import…