my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Whats Wrong I m nt Getting output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Whats Wrong I m nt Getting output

Divakant Dinesh
Greenhorn

Joined: Apr 15, 2009
Posts: 4
public class Literals
{
public static void main(String[] as)
{
char a = 0x123;
char b=123;
char c=(char)70000;
System.out.println("a = " + a + " b = " + b + "c =" + c );
}
}
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Answered in cross-post: whats-wrong-i-m-nt-getting-output-please-please-help

OP, please read up on cross-posting without notification, and why it's important: BeForthrightWhenCrossPostingToOtherSites
 
Don't get me started about those stupid light bulbs.
 
subject: Whats Wrong I m nt Getting output
 
Similar Threads
char doubt
char c = 'b'-'a' --No Compile error??????????
Operators
char literal's
comparing chars