The Artima Developer Community
Sponsored Link

Java Buzz Forum
When is a Character Not a Character?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
News Manager

Posts: 47623
Nickname: newsman
Registered: Apr, 2003

News Manager is the force behind the news at Artima.com.
When is a Character Not a Character? Posted: May 8, 2016 7:05 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by News Manager.
Original Post: When is a Character Not a Character?
Feed Title: JavaWorld
Feed URL: http://www.javaworld.com/index.rss
Feed Description: JavaWorld.com: Fueling Innovation
Latest Java Buzz Posts
Latest Java Buzz Posts by News Manager
Latest Posts From JavaWorld

Advertisement

Just when you thought you knew everything there is to know about the Java language, along comes something new to challenge your sense of complete mastery. For example, did you know that Java lets you declare a class within an interface, as in interface A { class B {} }? Also, were you aware that you can "add" cast operators together in an assignment statement such as byte i = (byte) + (short) + (double) 2000;? (You're not really adding cast operators.) Neither of these oddities is the subject of this post. Instead, I'm going to show you that not every value that can be assigned to a char variable denotes a character.

To read this article in full or to leave a comment, please click here

Read: When is a Character Not a Character?

Topic: 062: Peak Ping Pong – Software Defined Talk Previous Topic   Next Topic Topic: FizzBuzz Kata With Java Streams

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use