Posts

Image
  DATABASE Data.  What is the data?                               Any kind of (letters, words, symbols) symbols, photos, videos, files, etc. are data. Individual data does not have the same meaning. What is a information?                                  An information can be obtained by making individual data that has no meaning into an understandable form (data processing).     ★Data   - Car               Tharusha                Have                A    ★Information - Tharusha Have a 1 Car Database.                 A collection of data stored in an organized manner is called a database. What is a database.?       ...
Image
                                                                             Encapsulation.      Encapsulation is a concept that protects data. (data hiding), then we use (encapsulation) to protect the data in (method and variable).                                   GETTERS AND SETTERS. (Data in Out)       1.Get        2.Set  Ex  : Class Human {          private int id;          private String name;          private int age;          }          Class Runprogramme {          public static void main(String[]...
Image
                                                                                                   Casting There are 2 types of casting..         1.Up casting         2.Down casting Up Casting         Primitive data types.. 1. byte 2. char 3. short   4. int 5. long 6. float 7. double 8. boolen Integer (Hierarchy).                           Floating (Hierarchy) 1. long                                                  1. Double 2. int             ...
Image
                                                                                            Super keyword The super class uses the super keyword to call the constructor from the sub class. Then the super class will run inside the constructor. "The super class can be accessed/called even from methods and variables with the super keyword".                                         SUPER - SUPER CLASS... Ex ; Class Monkey {          Monkey () {         }         }         Class Man Extends Monkey {          Man () {         Super () ;...
Image
                                                                                            Method Overriding    ★ The method, method body (the code inside the method) from one (super class) to another (sub class),  change is method overring. Super Class  →   Monkey → Eat ();                                                Climb (); Class Man Extends Monkey  Sub Class      →   Man       → Eat ();                                                 Clim...
Image
                                                           Access Modifiers                  Class , Varaible , Method  - Java Security - [( Class , Variable , Method ) (Access -Yes/No)} ★( Class,  variable , method ) The ability to access and not access is determined according to the security (modification) given to access. Access Modifiers What are the 4 types?                ★   Public                ★   Protected                ★   Default                ★   Private Public (class variable methods) If the project is public, this (class variable method) accesses any class in a...
Image
                                                                                                Inheritance    1st Generation car...                       Drive             Breake             Reverse New Generation car...            Drive            Breake            Reverse            Flying            Surf Adding Things That Have One Property To Another Property Is Inheritance. And It Is Possible To Inherit Things From One Thing To Another.  According to the diagram abo...