Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Java 2
This is the forum to discuss the Wrox book Beginning Java 2, SDK 1.4 Edition by Ivor Horton; ISBN: 9780764543654
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 11th, 2006, 11:18 AM
Registered User
Join Date: Apr 2006
Location: Hyderabad, Sindh, Pakistan.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default java questions

Iwanna Multiple Choice Question from Ivor Hortons Book JAVA 2 Begners only from chapter 2 to 5.

  #2 (permalink)  
Old March 8th, 2007, 05:01 AM
Authorized User
Join Date: Feb 2005
Location: chch, n/a, New Zealand.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts

 Iwanna Multiple Choice Question from Ivor Hortons Book JAVA 2 Begners only from chapter 2 to 5.
just starting out myself but can you explain things better?

are you saying you want a sample of a multiple choice code?


  // as userentered is higher than both a & b this if statement
  // is executed and program doesn't run the other 2 if statements
  // because of the end statement.
if (userentered > a) & (userentered > b)
   System.out.println("you are higher than both start and end numbers!");
  // only gets here if userentered if lower than a or b or lower than both
if userentered > a
  System.out.println("you are higher than starting number");
 System.out.println("you are lower than starting number");

if userentered > b
  System.out.println(you are higher than ending number);
  System.out.println("you are lower than endinging number");

hope this gives you some pointers



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Interview Questions, C# Interview Questions, dotnetuncle .NET Framework 2.0 4 June 22nd, 2019 07:03 AM
Root Cause:java.lang.NoSuchMethodError: java.util. anees81 JSP Basics 3 March 1st, 2011 08:55 AM
java.lang.OutOfMemoryError: Java heap space meetkotresh J2EE 1 February 2nd, 2008 01:52 AM
Java Code - Wrox - Beginning JAVA - Ivor Horton ponguru Java Databases 3 May 18th, 2006 12:30 PM
Good Java/JSP etc interview questions are needed. BigDude JSP Basics 2 August 30th, 2005 05:54 PM

All times are GMT -4. The time now is 04:01 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.