Piet Souris wrote:Edit: my 'indeed' was in reaction to Pawels reply, that seems to have gone!?
Now it is.
Andy Frels wrote:When importing you import classes and Java.io is not a class.
ras oscar wrote:java.lang.Object
I know from process of elimination that the correct import statement is
What do the 3 lines above that refer to? If I instead entered
would I get the desired class?
Kelly Lykins wrote:I'm pretty sure isn't a real thing. You gotta specify what you are trying to import.
saurabhmehta mehta wrote:I guess since the other thread has not yet released the lock due to sleep() method.
saurabhmehta mehta wrote:So is the notify() call being made only after the entire loop is over?
Paul Clapham wrote:Since you're doing the same thing in both catch blocks you can simplify that some more:
Dave Tolls wrote:Then if the code referred to Eager.SOME_STATIC_THING the INSTANCE would be created
JLS SE 9 in 13.1 wrote:A reference to a field that is a constant variable (§4.12.4) must be resolved at compile time to the value V denoted by the constant variable's initializer.
If such a field is static, then no reference to the field should be present in the code in a binary file, including the class or interface which declared the field.