Browsed by
Month: August 2011

java.lang.NullPointerException in Java

java.lang.NullPointerException in Java

java.lang.NullPointerException in Java In Java “java.lang.NullPointerException” exception is the one that every beginner face once a while. The reason is variable at which the error occurred, does not contain any value or object reference. 1. If u define any reference variable and don’t create any object for that variable  2. If u define any reference variable globally but when u create the object then again define it Example:- Object a; // declare an object a.hashcode(); // trying to call a method on the…

Read More Read More

Use wamp and MySql in win 7 simultaneously

Use wamp and MySql in win 7 simultaneously

In win7 there is a problem in using wamp and MySql at the same time due to using the same port no. 3306 by the both  wamp and MySql. So for resolving this problem change the port no. of MySql during installation (ex. 3307). Now you can use both at same time. If u want to use Mysql as DB in php then change the port no. in file “config.inc.php” .For windows the directory of this file is “C:wampappsphpmyadmin2.11.5”  In the…

Read More Read More