Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unsigned byte?? Is it possible?  RSS feed

 
sonir shah
Ranch Hand
Posts: 435
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is wrong will the code?

I tried running the code but it is giving some error
Are we allowed using the statement" unsigned byte b =0; "
Sonir
 
Stefan Zoerner
Author
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sonir!
In Java all integral types, other than char, are signed. There is no unsigned keyword as there is in C.
Greetings from Hamburg,
Stefan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!