The Artima Developer Community
Sponsored Link

Java Buzz Forum
Friday Java Quiz: Know Your java.lang Classes

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Friday Java Quiz: Know Your java.lang Classes Posted: Dec 7, 2007 6:14 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Friday Java Quiz: Know Your java.lang Classes
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

This weeks Friday Java Quiz is provided by Brian Coyner.

Q: What does the following Java program print:

public class Foo {
  public static void main(String[] args) {
    System.out.println(Math.min(Double.MIN_VALUE, 0.0d));
    System.out.println(Math.min(Integer.MIN_VALUE, 0));
  }
}

Like always, answer the question without the help of actually compiling and running the class or looking anything up in a book or on the Google.

Bonus Q: Is

-1

an integer literal?

Read: Friday Java Quiz: Know Your java.lang Classes

Topic: Deploying ESB projects using Ant. Previous Topic   Next Topic Topic: links for 2007-11-28 from PeopleOverProcess.com

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use