File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java quiz" Watch "java quiz" New topic

java quiz

Ade Fapetu

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

Joined: Jul 08, 2003
Posts: 24199


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]
I agree. Here's the link:
subject: java quiz
It's not a secret anymore!