The String class is defined in the java.lang package and hence is
implicitly available to all the programs in Java. The String class is
declared as final, which means that it cannot be subclassed. It extends
the Object class and implements the Serializable, Comparable, and
CharSequence......[read more]
A method is a set of statements grouped together to perform a specific
task. It is written to define the behavior of an object or a class. In
object-oriented programming, a behavior is referred to as a message
that one object sends to another object. Behavior is the only way by
which an object......[read more]
Introduction An array is a fixed length data structure that stores
multiple values of the same data type. A Java array is a collection of
primitive types, object references, or references to other arrays. An
individual value stored in an array is called an element of array. An
array can......[read more]
A constructor is a special kind of method that is written as a part of
a class. It provides a convenient way to initialize a newly created
object at the time of its creation. Once a constructor is defined for a
class, it is called automatically immediately after the creation of a
new object,......[read more]
A program is a group of statements that are executed to achieve a
predetermined task. Statements in a program are generally executed in a
sequential manner, which is called sequential execution or sequential
control flow. However, by putting the decision-making statement in the
program, the......[read more]
In Java, a class can have at the most one immediate superclass.
Multiple inheritance , where a class has more than one superclass, is
not allowed in Java. However, one cannot ignore the importance of
multiple inheritance because a large number of real-life applications
require the use of......[read more]
Modifiers are Java keywords that are used to declare features in
applications. They affect either the lifetime or the accessibility of a
feature. A feature may be a class, a method, or a variable. Modifiers
that affect the visibility of a feature are called access modifiers or
visibility......[read more]
Some of the important features added to Java 5.0 are as follows:
Autoboxing and Unboxing
Covariant returns
Enhanced for loop (for-each)
enum
Generics
Static Imports
Variable-argument lists (varargs)
StringBuilder class
Other additions to the exam, which are......[read more]
String, StringBuffer, and StringBuilder are classes present in the
Object class. String objects are immutable, whereas StringBuffer and
StringBuilder objects can be modified. String Class The String class is
defined in the java.lang package, and hence it is implicitly available
to all......[read more]
The CX310-055 (Sun Certified Programmer for the Java 2 Platform,
Standard Edition 5.0) checks your real ability as a programmer. In fact
it is totally scenario based, rather than knowledge based. This test
requires you to have a good understanding of the Java language and the
capability to......[read more]