Step by step tutorial for java , java script ,collections API and important core java interview questions and programs for fresher and experienced developers.
Friday, September 25, 2015
Tuesday, September 22, 2015
Anonymous block complete
Some times you will get this error, when you tried to run stored procedure.
There is a two way you can solve this.
1. You must add and run SET SERVEROUTPUT ON before your procedure code. All latest version need this.
2.Click -->View-->Dbms Output and then click + symbol, while you clicking on this + symbol, it will ask DB connect may be. Select DB environment.Now Run , you can see output in Dbms output window.
There is a two way you can solve this.
1. You must add and run SET SERVEROUTPUT ON before your procedure code. All latest version need this.
2.Click -->View-->Dbms Output and then click + symbol, while you clicking on this + symbol, it will ask DB connect may be. Select DB environment.Now Run , you can see output in Dbms output window.
Wednesday, September 16, 2015
Cannot complete the install because one or more required items could not be found. Software being installed: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317
Help-->Install New Software
After adding the below URL, that child details will be populated, then click Next and continue further.
If you are unable to install maven with below URL in eclipse.
Url: http://www.fuin.org/p2-repository/
Try the below one, Its worked for me.
http://download.jboss.org/jbosstools/updates/m2eclipse-wtp/
Installing Maven |
If you are unable to install maven with below URL in eclipse.
Url: http://www.fuin.org/p2-repository/
Try the below one, Its worked for me.
http://download.jboss.org/jbosstools/updates/m2eclipse-wtp/
Tuesday, August 18, 2015
Sunday, July 26, 2015
Implicit super constructor Object() is undefined for default constructor
Suppose if your JRE is not defined properly, you might get this error.
Just follow the below steps to solve this error.
In Eclipse:
1.Right click on your project (Package Explorer mode) and select Build Path -> Configure Build Path
2.Go to Libraries tab
3.Click Add Library.
4.Select JRE System Library
5.Click Next
6.Select your JRE
7.Click Finish.
Once finish, make a clean and build.
Friday, May 8, 2015
Avoid null with valueOf() method
In java the valueOf() and toString() would play the most role for displaying object output. However we should know, which is the best one to use?
We can avoid null, if we will use valueOf() method instead of toString() method.
See the below example for more understanding,
JavaHit javaObject = null;
// will not throw Null Poniter Exception
System.out.println(String.valueOf(javaObject));
// will throw Null Poniter Exception
System.out.println(javaObject.toString())
We can avoid null, if we will use valueOf() method instead of toString() method.
See the below example for more understanding,
JavaHit javaObject = null;
// will not throw Null Poniter Exception
System.out.println(String.valueOf(javaObject));
// will throw Null Poniter Exception
System.out.println(javaObject.toString())
Subscribe to:
Posts (Atom)