SCJP1.5
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
SCJP1.5
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Originally posted by hari harann:
The static block gets executed when class is initialized
Originally posted by hari harann:
But static variable gets executed when class is loaded in mem , that is when jvm starts.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
'static block gets executed when class is initialized'
but i have found that
'static block gets executed when class is loaded in memory',
Originally posted by Ulf Dittmer:
A class gets loaded into memory only if it is about to be initialized, so the statements are saying the same thing.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |