Originally posted by Bhaskar Selvaraju:
In java String is treatd as an object and not as a primitive data type. Only primitve data types need to be initialized before they can be used inside a method. Hope it is clear to you.
Bhaskar
Originally posted by Detlev Beutner:
A1.
That is somehow logical, because the "real" abs-value would be 2147483648, but Integer.MIN_VALUE is 2147483647 (think about zero!).
If this String object represents an empty character sequence, or the first and last characters of character sequence represented by this String object both have codes greater than '\u0020' (the space character), then a reference to this String object is returned.
Returns a new string resulting from replacing all occurrences of oldChar in this string with newChar.
If the character oldChar does not occur in the character sequence represented by this String object, then a reference to this String object is returned. Otherwise, a new String object is created that represents a character sequence identical to the character sequence represented by this String object, except that every occurrence of oldChar is replaced by an occurrence of newChar.
A local class is a nested class (�8) that is not a member of any class and that has a name. All local classes are inner classes (�8.1.2). Every local class declaration statement is immediately contained by a block.
and
It is a compile-time error if a local class declaration contains any one of the following access modifiers: public, protected, private, or static.