What are the 'Java Standards' ???? đ¤
Java Standards.
     Java āļ´්āļģāļ°ාāļą āļොāļ§āˇ් 3āļිāļą් āˇāļ¸āļą්āˇිāļ āˇāļą āļ
āļāļģ āļāˇා āļąāļ¸්,
- Class
- Method
- 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 āˇෙāļąāˇ් āļąොāˇāļą āļ
āļāļģ āļāˇි āļ
āļāļēāļą් āļ´āļ¸āļĢāļ් āˇෙāļąāˇ් āˇේ.
              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
Post a Comment