int b1 = 1 << 31; int b2 = 1 << 31 ; <br /> b1>>>= 31 ; b1>>>= 1 ;
b2>>= 31 ; b2>>= 1 ;
Dave
Dave
Originally posted by Manfred Leonhardt:
What Dave said ... he types faster than I do!
Manfred.
Dave
Originally posted by Manfred Leonhardt:
Hi Kevin,
Dave has already verified your Q1 answer, so ...
[b]Can abstract method or class be static??
A static class (by definition in java only inner classes can be static) can be abstract. The following code shows that it will compile and run.
An abstract method can't be static for a simple reason. Abstract means that the method must be overridden, while static negates overridding (static methods can not be overridden, only hidden!).
Regards,
Manfred.[/B]
If a class declares a static method, then the declaration of that method is said to hide any and all methods with the same signature in the superclasses and superinterfaces of the class that would otherwise be accessible to code in the class.
Dave