What are the 'Java Data Types' and 'Access Modifiers' ???? đ¤
Java Data Types.
āļ¯āļ්āļ āļāļļāļŠා āļāļģ āļāļļා āļැāļąීāļ¸āļ§ āˇැāļි āļāļාāļģāļēේ āļ¯ේāˇāļŊ් Data Types āļŊෙāˇ āˇැāļ¯ිāļą්āˇේ. Java Language āļāļෙāˇි āļ´්āļģāļ°ාāļą āˇāˇāļēෙāļą් Data Types 8āļ් āļ¯ැāļිāļē āˇැāļ. āļāˇා Primitive Data Types āļŊෙāˇ āˇැāļ¯ිāļą්āˇේ. āļāˇා āļŊෙāˇ,
- byte - (Byte) :- Numerical Value
- short - (Short) :- Numerical Value
- int - (Integer) :- Numerical Value
- long - (Long) :- Numerical Value
- float - (Float) :- Numerical Value
- double - (Double) :- Numerical Value
- boolean - (Boolean) :- True / False
- char - (Char) :- Character
- NUMBER SYSTEM
Ex :- Binary , Decimal , Octal , Hexadecimal
Binary - 1 1 1 1 1 1 1 1 2
āļāˇāļ āˇāļ¯āˇāļą් āļ¯්āˇිāļ¸āļē āˇංāļ්āļēා āļ´āļ¯්āļ°āļිāļēෙāˇි āļāļą 1 āļēāļą āļāļ āļāļŊāļ්āļāļ¸āļ් Bit - 1 āļŊෙāˇ āˇැāļ¯ිāļą්āˇිāļē āˇැāļිāļē.
- Data Values
1024 Byte = 1KB
1024 KB = 1 MB
1024 MB = 1 GB
1024 GB = 1 TB
Class / Method / Variable āļāļāļāļ§ Access āļāļģāļą්āļą āļ¯ෙāļą Security āļāļ Modify āļිāļģීāļ¸āļ§ āļēොāļ¯ා āļāļą්āļąා āļ¯ේāˇāļŊ් Access Modifiers āˇේ. Java Language āļāļෙāˇි Access Modifiers āˇāļģ්āļ 4 āļ¯ැāļිāļē āˇැāļිāļē. āļāļąāļ¸්,
- Public
- Private
- Protected
- Default
Ex: -
- public class Chamath { }
- protected class Chamath { }
- private class Chamath { }
- class Chamath { } - (Use as Default )
Comments
Post a Comment