|
List of Free SCJP5 Articles from Ucertify.com |
|
|
Written by Roger Stuart
|
|
Page 14 of 14
A ClassCastException extends from the RuntimeException class. It is
thrown when an attempt is made to cast an object, which is not of the
appropriate run-time type. For example: Object obj = new Vector();
String s = (String) obj; Following are the two kinds of constructors
for......[read more]
Modifier is a Java keyword that affects the behavior of the feature it
precedes. Java has a number of modifiers, which are as follows: final:
It defines a constant feature. private: It specifies that a feature can
be accessed only by code in the same class. protected : It......[read more]
Every computer language uses some reserved words known as keywords.
They are an essential part of the language. In Java, keywords are
defined in lower case and cannot be used as identifiers. The table
given below shows the list of keywords used in Java: abstract assert
boolean break......[read more]
|