1) Static blocks/static methos/static variables are executed first in the order of thier appearance in the code.
After executing static's instance blocks/instance methos/instance variables are executed.
2) The reference may be null when calling a static method from main method.
3) float arr[][] = new float[][10]; is wrong
float arr[][] = new float[10][]; is correct
4) WaitNotify(){} in a class in not private but public
5) An integer type data can't be assigned to char type because of negative range of integer data.
6) StringIndexOutOfBoundsException is thrown if the loweIndex < 0 or upperIndex > string.length or upperIndex < lowerIndex for subString method of String class.
7) Interfaces cannot have constructors but abstract classes can.
8) Private variables are available though instances even to the main method within the same class.
9) when both the String and Object argument constructors are considered by the compiler for eligibility, the compiler will choose the 'Most specific method.
After executing static's instance blocks/instance methos/instance variables are executed.
2) The reference may be null when calling a static method from main method.
3) float arr[][] = new float[][10]; is wrong
float arr[][] = new float[10][]; is correct
4) WaitNotify(){} in a class in not private but public
5) An integer type data can't be assigned to char type because of negative range of integer data.
6) StringIndexOutOfBoundsException is thrown if the loweIndex < 0 or upperIndex > string.length or upperIndex < lowerIndex for subString method of String class.
7) Interfaces cannot have constructors but abstract classes can.
8) Private variables are available though instances even to the main method within the same class.
9) when both the String and Object argument constructors are considered by the compiler for eligibility, the compiler will choose the 'Most specific method.
0 Comments On This Entry
← April 2018 →
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
My Blog Links
Recent Entries
-
SCJP Notes - Part 8
on Apr 04 2008 01:22 AM
-
-
-
-
Recent Comments
Search My Blog
0 user(s) viewing
0 Guests
0 member(s)
0 anonymous member(s)
0 member(s)
0 anonymous member(s)