Posted on February 23, 2009 by Narayan
Here we are going to start a exception handler of handling the occurance of error.
To start the exception we must know a few info about the try{} catch() and finally{}.
Try{}
This try helps is to try any operation and if there appears any error then it directly goes to the catch() method to check either the [...]
Filed under: Advance | Tagged: Exception, null, NullPointer, pointer, throw, throws | Leave a Comment »
Posted on February 22, 2009 by Narayan
First of all we need to know that in java for printing the line we use following command:
System.out.println();
While we code the System then it is related with input and output and all the hardware conf.
Then the keyword out defines about the display of the line.
Now we need to input instead of output.
So just code by [...]
Filed under: Object Core | Tagged: Exception, in, input, java, javanepal, keyboard, out, read, System | Leave a Comment »
Posted on February 14, 2009 by Narayan
Here you can see the structure of Enum class in java. This class have their own rules and regulation.In this class there is no use of public except in the method value and class access because it doesn’t give any access to client. Some changable user-defined are written in italics.
For enum define , Just use [...]
Filed under: Object Core | Tagged: accessor, class, datatype, enum, enumeration, java | Leave a Comment »
Posted on February 8, 2009 by Narayan
Actually the the height we defined for JFrame may differ as what we assume . In windows JFrame uses its height including it’s title bar and the bottom border of window frame.It can be illustrated below :
Let’s we code the JFrame size.
In syntax: JFrame_var_name.setSize(Width_px, Height_px);
foreg. xxx.setSize(100, 100);
In this code we can see that [...]
Filed under: Applet | Tagged: Applet, border, frame, height, java, JFrame | Leave a Comment »
Posted on February 8, 2009 by Narayan
Here you can learn some of the features of the string which help in searching the words as wells.This String is written in Capital S because it’s a separate class can be found in java. The String have many function, it’s an array of the Character .
Some examples of String uses
Filed under: String | Tagged: charAt, class, features, length, object, search, some, string, substring | Leave a Comment »