core java

Day 1

i am also beginner , lets learn together🤓

BASIC JAVA PROGRAMMING:

“in java if you want write any code in java we need to take the hype of CLASS or INTERFACE or ENUM.”

1.Class


This content originally appeared on DEV Community and was authored by Sahithi Puppala

Image description

Day 1

  • i am also beginner , lets learn together🤓

BASIC JAVA PROGRAMMING:

         "in java if you want write any code in java we need to take the hype of CLASS or INTERFACE or ENUM." 


                  1.Class
                  2.Interface
                  3.Enum

First we learn each one syntax's !!!

Wait............................

Q)WHAT IS SYNTAX?
A: Syntax means Some set of rules which we need to follow whenever we are writing the code if we are not following the syntax we will be getting an error.

CLASS:

---->Syntax of Class:
Class
{
------;
------;
}

INTERFACE:

---->Syntax of Interface:
< Access Modifier > Interface
{
-------;
-------;
}

ENUM:

---->Syntax of Enum:
Enum
{
-------;
-------;
}

i think you all are one doubt in your mind!!!

What is Access Modifiers?

Access Modifiers:

             Access Modifiers Provide Access Restrictions Which Will enhance the data Security.in java We are having '4' access Modifiers.

               1.Public
               2.Private
               3.Protected
               4.Package-Private(default)   

Note: We can use only '2' access Modifiers for a java Class, they are Public & Package-Private(Default).

waiting for Day-2 ....................................................


This content originally appeared on DEV Community and was authored by Sahithi Puppala


Print Share Comment Cite Upload Translate Updates
APA

Sahithi Puppala | Sciencx (2024-06-28T06:30:51+00:00) core java. Retrieved from https://www.scien.cx/2024/06/28/core-java/

MLA
" » core java." Sahithi Puppala | Sciencx - Friday June 28, 2024, https://www.scien.cx/2024/06/28/core-java/
HARVARD
Sahithi Puppala | Sciencx Friday June 28, 2024 » core java., viewed ,<https://www.scien.cx/2024/06/28/core-java/>
VANCOUVER
Sahithi Puppala | Sciencx - » core java. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/06/28/core-java/
CHICAGO
" » core java." Sahithi Puppala | Sciencx - Accessed . https://www.scien.cx/2024/06/28/core-java/
IEEE
" » core java." Sahithi Puppala | Sciencx [Online]. Available: https://www.scien.cx/2024/06/28/core-java/. [Accessed: ]
rf:citation
» core java | Sahithi Puppala | Sciencx | https://www.scien.cx/2024/06/28/core-java/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.