• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding the Ascii value  RSS feed

 
saxena neera
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was developing the below code....



and the final outcome was int version , so does the ASCII value of character 'c' is being taken while passing it in to the method..!!
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
saxena neera wrote:...the final outcome was int version , so does the ASCII value of character 'c' is being taken while passing it in to the method..!!

Nothing to do with ASCII, because Java uses Unicode; but if you look at the JLS, you'll see that a char is an unsigned numeric value. You only have one method that takes a numeric value.

Winston
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!