How to fix java.lang.NullPointerException

Posted Under: JAVA on Nov 10, 2017
When programming in JAVA often developer see java.lang.NullPointerException. There are reasons as to why this Exception is thrown. So it is best to understand how to fix this exception before the application is deployed in production.

Upload File to Server Using Java Servlet

Posted Under: JAVA on Mar 3, 2017
File upload is trivial to any web application. Prior to Java Servlet specification 3.0 upload to server required Apache Commons. Now its just a matter of writing a just any other file.

JAVA Evaluate Mathematical Expression String

Posted Under: JAVA on Jan 29, 2017
Java do not have an eval() method. But with the introduction of ScriptEngine class in JDK 1.6 it is possible to evaluate a string as a piece of code in JAVA

Check Internet Connection in JAVA Example

Posted Under: JAVA on Feb 29, 2016
With the growth of Internet of Things (IoTs) remain connected to the internet is mandatory any disconnection will result in an unexpected outcome. Therefore it is very important to write such logic in code that can handle such situations and prompt immediately about the unavailability of the internet.

How to make an Antivirus Program in JAVA

Posted Under: JAVA on Feb 10, 2016
Today we will make an antivirus program using Java Programming Language. This code can be done in any programming language. The below written code is how an ANTIVIRUS works in actual or you can say its the algorithm (written in JAVA) to make people understand the basics of ANTIVIRUS internal searching mechanism.
© Tutorial Jinni