Scjp

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Scjp as PDF for free.

More details

  • Words: 195
  • Pages: 56
RuntimeException need not be declare or caught(line 7 try catch).If Exception Then u have to

new Integer(42) & new Integer(“42”) same . x.add(Integer.parseInt(“812”)) ok as java 5. Integer.parseInt(“812”) returns int

s=null.SOP(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 subclasses.What I in the initialization block will be printed 1st. then Constructor will be printed.It is tested.Check 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 method.Chk 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 java.lang.System.out; 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.

Related Documents

Scjp
October 2019 42
Scjp
July 2020 10
Scjp
November 2019 20
Scjp Notes
November 2019 12
Scjp 5
November 2019 10
Scjp Dumps
November 2019 18