Java Declaring and Initializing Variables

 Java Declaring and Initializing Variables 

        Examples of Legal Variable Identifiers:
        word, WORD, Word , max_$, rambo, $_99.99, cÃ¥lei, grüß 
        Examples of Illegal Variable Identifiers:

        81cow, i@home, old-boys ,space here
----------------------------------------
💡Tips 
 Cannot Use java Keyword to Our Variables name like
Ex: 
byte public = 0 ;    public is java Keyword  
String true = "Yes" ; true is java Keyword 
-----------------------------------------------------

A variable stores a value of a particular type.

A variable has a name, a type, and a value


1. Variables Declaring

    byte val ;


2. Variables Initializing

    A declaration can also include initialization a value

     val = 5  ;
3. Declaring and Initializing Variables
        
        byte val = 5 ;


Code Here

Post a Comment

Previous Post Next Post

Featured Post