public class ADirtyOne
{
public static void main(
String args[])
{
System.out.println(Math.abs(Integer.MIN_VALUE));
}
}
in my comp the output is -2147483648
but the ans given is 0 how come......
---------------------------------------
When does the JVM exit?
After the main method returns.
After all the non demons threads created by the application complete.
After all the demon threads created by the application complete
When a
thread executes System.exit();
When an uncaught exception is thrown in a non demon thread.
When an uncaught exception is thrown in a demon thread.
---------------------------------------------------
class which has all its constructors declared as private
1.Cannot be instantiated by any other Outer class.
2.Cannot be extended.
i understand why it can't be instantiated by the other class or other outer class...
but why it can't extend any body please......
-----------------------------
[ May 05, 2005: Message edited by: Parameswaran Thangavel ]