This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler 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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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: 24195


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!