What are the 'Java Standards' ???? 🤔

 

     Java Standards.

     Java āļ´්‍āļģāļ°ාāļą āļšොāļ§āˇƒ් 3āļšිāļą් ⎃āļ¸āļą්⎀ිāļ­ āˇ€āļą āļ…āļ­āļģ āļ‘⎀ා āļąāļ¸්,
  1. Class
  2. Method
  3. Variable      ⎀ේ.

⎃ාāļ¸ාāļą්‍āļēāļēෙāļą් āļ…āļ´ Java  class āļ‘āļšāļšāļ§  class name āļ‘āļšāļš්  āļŊāļļා āļ¯ීāļ¸ේāļ¯ී.  āļ¸ුāļŊ් āļ…āļšුāļģ Capital Letters ⎀āļŊිāļą් āļ­ැāļļීāļ¸ āˇƒිāļ¯ුāļšāļģāļēි. āļ‘āļ¸āļœිāļą්  āļ…āļ´āļ§ āļ´āˇ„āˇƒු⎀ෙāļą් class āļ‘āļšāļš් āˇ„āļ¯ුāļąා āļœāļ­ āˇ„ැāļšිāļē. āļ‘āļ¸ෙāļą්āļ¸ āļ‘⎄ි āļ´āļģා⎃āļē āļ´ෙāļą්⎀ීāļ¸āļ§ āļ…āļ´ { } Open / Close Brackets  āļ¯, āļ‘āļ¸ āļąāļ¸āļ§ āļ‰āļ¯ිāļģිāļēෙāļą් āļ…āļ´ class āļēāļą Keyword āļ‘āļšāļ¯, āļŊāļļා āļ¯ෙāļēි. 
 

             EX:- 
                        class Chamath { }
                        class Java { }

            
āļ­āˇ€āļ¯ āļ…āļ´ Variable āļ‘āļšāļšāļ§ āļąāļ¸āļš් āļŊāļļා āļ¯ීāļ¸ේāļ¯ී  ⎃ාāļ¸ාāļą්‍āļēāļēෙāļą් ⎃ිāļēāļŊුāļ¸ āļ…āļšāļģු  Simple letters ⎀āļŊිāļą් āļŊāļļා āļ¯ේ.

              EX:- 
                        
                        String str;
                        String chamath;


āļ‘āļ¸ෙāļą්āļ¸ Java Method āļ‘āļšāļšāļ§ āļąāļ¸āļš් āļŊāļļා āļ¯ීāļ¸ේāļ¯ී ⎃ිāļēāļŊුāļ¸ āļ…āļšුāļģැSimple letters ⎀āļŊිāļą් āļŊāļļාāļ¯ෙāļą āļ…āļ­āļģ āļ…āļœāļ§ ( ) parameter āļ‘āļšāļš් āļ‡āļ­ු⎅āļ­් āļšāļģāļēි. āļ‘āļ¸ෙāļą්āļ¸ āļ‘⎄ි āļ´āļģා⎃āļē āļ´ෙāļą්⎀ීāļ¸āļ§ āļ…āļ´ { } open / close Brackets ā āļˇා⎀ිāļ­ා āļšāļģāļēි.
                         

              EX:- 
                        
                        public void chamath(){

                        }   

    Object & Class

     What is an Object? 🤔 

Object āļ‘āļšāļš් āļēāļąු Properties āˇƒāˇ„ Behaviors  ⎀āļŊ āļ‘āļšāļ­ු⎀āļšි. Object āļ‘āļšිāļą් āļ‘āļšāļ§ Properties āˇƒāˇ„ Behaviors ⎀ෙāļąāˇƒ් āļąො⎀āļą āļ…āļ­āļģ āļ‘⎄ි āļ…āļœāļēāļą් āļ´āļ¸āļĢāļš් ⎀ෙāļąāˇƒ් ⎀ේ.
 
              Ex:-    

 

              Object = Properties  + Behaviors

        

      What is a Class? 🤔

Class āļ‘āļšāļš් āļēāļąු Object āļ‘āļšāļš් ⎃āļ¯āˇ„ා ⎃ාāļ¯āļąු āļŊāļļāļą āļ†āļšෘāļ­ිāļē ⎀ේ.

 

   Human
   (Class)




                  EX-







   Object Generating

āļ…āļ´āļ§ Class āļ‘āļšāļš් āļ­ු⎅āļ¯ී āļ…⎀⎁්‍āļē āļ­āļģāļ¸් Objects āˇƒāļ¯ා āļœāļ­ āˇ„ැāļšිāļē.āļ…āļ´āļ§ āļ‘āļē āļš්‍āļģāļ¸ āļ¯ෙāļšāļšāļ§ āˇƒිāļ¯ු āļšāˇ… ⎄ැāļšිāļē.
            
                        1) Human tharuka = new Human();

                        2) Human tharuka;
                            tharuka =  new Human;









      
        Ex-

            Human chamath = new Human();
            
            Car honda = new Car();

            Colour red = new Colour();



            Human chamath;
            chamath = new Human();


             Car honda;
             honda = new Car();

            
            Colour red;
             red= new Colour();

                

            
            
            



    

        

Comments

Popular posts from this blog

What are the 'Java Data Types' and 'Access Modifiers' ???? 🤔

Inheritance in java

Java Main Method and Construtor

Java Method Overloading

Abstraction in Java

Polymorphism

Encapsulation