This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java quiz Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java quiz" Watch "java quiz" New topic
Author

java quiz

Ade Fapetu
Greenhorn

Joined: Oct 09, 2005
Posts: 6
write a literal representing long integer value 12 billion
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24189
    
  34

Hi,

Welcome to JavaRanch!

Ummm... Not sure why this would have you stumped. Do you not know how many zeroes are in a billion (assuming you're using the same definition of "billion" as the questioner?) You mention that it's a long literal, and the only even vaguely tricky part -- gotta remember that 'L' at the end.


[Jess in Action][AskingGoodQuestions]
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: java quiz