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
← January 2022 →
| 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 | 31 |
My Blog Links
Recent Entries
-
SCJP Notes - Part 8on Apr 04 2008 01:22 AM
-
SCJP Notes - Part 7on Mar 31 2008 05:06 AM
-
SCJP Notes - Part 6on Mar 27 2008 08:19 AM
-
SCJP Notes - Part 5on Mar 27 2008 08:05 AM
-
SCJP Notes - Part 4on Mar 27 2008 07:31 AM
Recent Comments
Search My Blog
17 user(s) viewing
17 Guests
0 member(s)
0 anonymous member(s)
0 member(s)
0 anonymous member(s)



Leave Comment








|