Results 1 to 2 of 2
  1. #1
    Jagdeesh123 is offline Member
    Join Date
    Nov 2010
    Rep Power

    Default wat is the unicode of '?' ? 63 or 128

    public class D{
    public static void main(String[] argv){
    char a = '?';
    int b = 128;
    System.out.println(" a: " +(int)a);
    System.out.println(" b: " +(char)b);



    how it is possible. I have assigned '?' to char variable a and it is printing 63.
    also assigned value 123 to int var b and its printing ?.

    then wat is the actual unicode of '?' ?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power


    Quote Originally Posted by Jagdeesh123 View Post
    then wat is the actual unicode of '?' ?
    The unicode code point for the question mark character is 63 (decimal) or u003F (hexadecimal); the code 128 or u0080 is a unicode control character and is often displayed as ? because it doesn't have a representation of its own.
    Also have a look at Unicode Consortium

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Unicode(UTF-8) to PDF
    By karasatishkumar in forum Advanced Java
    Replies: 0
    Last Post: 03-24-2010, 10:59 AM
  2. Properties, unicode
    By mac in forum New To Java
    Replies: 2
    Last Post: 01-28-2010, 10:45 PM
  3. SWT 2D Unicode Example
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 06-28-2008, 09:21 PM
  4. Unicode display
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-25-2008, 10:33 AM
  5. TextArea with Unicode
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 04-16-2008, 10:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts