Results 1 to 2 of 2
  1. #1
    heat84 is offline Member
    Join Date
    Dec 2007
    Rep Power

    Default Valid declarations

    Which of the following lines are valid declarations?

    Select the three correct answers.

    char a = '\u0061';

    char 'a' = 'a';

    char \u0061 = 'a';

    ch\u0061r a = 'a';

    ch'a'r a = 'a';

    Can someone give me the correct declarations with explanations.

  2. #2
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    NewEngland, US
    Rep Power


    In case you're wondering why no one has replied in over ten days, it's because you're asking a very fundamental and homework like question. Do some legwork and learn it for yourself - that is, if you truly do want to learn. When you've figured out which ones are correct, and if you're still confused - then a question pertaining to its validity because of your misunderstanding would likely be answered.

    Start here.

Similar Threads

  1. Replies: 3
    Last Post: 07-25-2011, 03:19 PM
  2. Replies: 2
    Last Post: 01-21-2008, 08:15 AM
  3. Help with valid declarations of a float
    By baltimore in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 10:28 AM
  4. MySite/ cannot resolve symbol
    By Albert in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 07-05-2007, 05:49 AM

Posting Permissions

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