Monday 5 October 2015

Java Tutorial : Java Character Literals


Click here to watch in Youtube :
https://www.youtube.com/watch?v=7leCcZjEzVw&list=UUhwKlOVR041tngjerWxVccw

Click the below Image to Enlarge
Java Tutorial : Java Character Literals
Java Tutorial : Java Character Literals
Java Tutorial : Java Character Literals
CharLiteralDemo.java
public class CharLiteralDemo
{

    public static void main(String[] args)
    {

        char char_a = 'a';
        System.out.println("char_a : " + char_a);

        char char_3 = '3';
        System.out.println("char_3 : " + char_3);

        char singleQuotationMark = '\'';

        System.out.println("singleQuotationMark : " + singleQuotationMark);

        char doubleQuotationMark = '\"';

        System.out.println("doubleQuotationMark : " + doubleQuotationMark);

        char captialA = '\u0041';

        System.out.println("captialA : " + captialA);

        char digitZero = '\u0030';

        System.out.println("digitZero : " + digitZero);

    }
}
Output
char_a : a
char_3 : 3
singleQuotationMark : '
doubleQuotationMark : "
captialA : A
digitZero : 0
To Download VariableDemoCharLiteralApp Project Click the below link
https://sites.google.com/site/javaee4321/java/VariableDemoCharLiteralApp.zip?attredirects=0&d=1

See also:
  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • No comments:

    Post a Comment