0% found this document useful (0 votes)
327 views56 pages

SCJP

Runtime exception need not be declare or caught(line 7 try catch).if Exception Then u have to new Integer(42) and new Int("42") same. Instanciation block starts from top most class then to subclasses. What I in the initialization block will be printed 1st. Then constructor will be printed. If the Father constructor was private then syntax error constructor not visible will be there.

Uploaded by

api-3701880
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
327 views56 pages

SCJP

Runtime exception need not be declare or caught(line 7 try catch).if Exception Then u have to new Integer(42) and new Int("42") same. Instanciation block starts from top most class then to subclasses. What I in the initialization block will be printed 1st. Then constructor will be printed. If the Father constructor was private then syntax error constructor not visible will be there.

Uploaded by

api-3701880
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

RuntimeException need not be declare or caught(line 7 try catch).

If Exception Then u have to


new
Integer(42) & new Integer(“42”) same . [Link]([Link](“812”)) ok as java 5. [Link](“812”) returns int
s=[Link](s) will print null.
instanciation block is called at Obj instanciation Only. {go();}
check the order a,b,c,1,2,3 are printed. say() method can be accessed at the same time by multiple thread .
The constructor & initialization block starts from top most class then to [Link] I in the initialization block will be
printed
1st. then Constructor will be [Link] is [Link] with the with the book.
Check It is working ??????????????
return type of the any overridden method will be exactly same , change in arg type will make new [Link] for Integer in Java
5.
here s2-s1, that’s why sorted in reverse based on 2nd char of the strings.
should be ‘import static [Link]; all identifiers are correct *********
value assigning to final constants are ok.*******
check it system shows correct only for A ??????????????????/
if the Father constructor was private then syntax error constructor not visible will be there. even though super() is called from
subclass. that’s why make constructor public or protected.

You might also like