• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Marcus Green Exam 3 Q25

 
Judy YU
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question 25, 4) All the integer primitives in java are signed numbers. is not considered right by Marcus Green? Why?
According to Mughal book(p29), integral datatypes include Character type and Integer type(byte, short, int, long), therefore, Integer datatype should be signed numbers.
I am confused. Please help.
 
Marine
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you please email a link to his exam. Thank you or post it here
email: crutoy@aol.com
 
Judy YU
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you go to Maha Anna's home on javaranch http://www.javaranch.maha then you will find it among a lot of mock exams.
 
Rob Acraman
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Judy,
"Integral data types include the Character type ...". However, characters are unsigned - therefore, not all integral types are signed
 
Jan Volkmann
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Judy,
this is a pure linguistic problem. "integer" is a noun, "integral" is the corresponding adjective (native speakers should feel free to correct me on this). In order to be formally correct (both linguistically and java-specifically) one has to put this way: "The integral primitives consist of the integers: char, byte, short, int and long."
I think, formal English wouldn't allow anything like "integer primitives" (as it was in Marcus Green's question) whereas idiomatic English does. I don't want to sound like a smart arse here but in this context informalism obviously may cause a great deal of confusion and frustration. I hope questions in the real exam are as exact as the JLS is (maybe some veteran could confirm/deny this).
By the way, there is no further distinction between char and the rest of the integers.
Good luck,
Jan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic