Wrox Programmer Forums
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 3rd, 2005, 09:12 AM
Authorized User
Join Date: Nov 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unsigned integers

Hi everyone

Correct me if I am wrong, but as far as I am aware, it is impossible to declare an integer as being unsigned in java.
But if that is the case, then why did the makers of java design the language so that you cannot declare an integer as being unsigned?
Are there some microprocessors in some computer systems that have no hardware prevision for the direct handling of unsigned integers because they are designed to only directly handle signed integers and this is why java does not allow unsigned integers?

Best wishes
Andrew Hamilton

Old September 26th, 2006, 02:46 PM
Friend of Wrox
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts

Yeh that does kinda suck. Especially for the various network protocols that use unsigned ints. There's more discussion here:


Don't Stand on your head - you'll get footprints in your hair

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integers in SQL Server tconlan25 SQL Server 2000 3 August 23rd, 2005 10:08 AM
getting Integers from the query string TadReeves JSP Basics 2 March 16th, 2005 01:22 PM
Using integers with text boxes clojinted General .NET 1 February 19th, 2005 08:12 PM
how can i convert strings into integers amahja56 C++ Programming 2 February 27th, 2004 06:27 PM
Sum of All Integers Between 2 numbers bicho Classic ASP Basics 4 July 6th, 2003 01:01 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.