Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Components of Java Programing

    • 0
    • 2
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 336
    Comment on it

    Components of Java Programing

    The Java programming contains the following components:

    1. Keywords.
    2. Identifiers.
    3. Operators.
    4. Literals.

    Keywords

    Keywords are the commands used in Java program, these are the reserved words.
    In Java all keywords are in lower case.
    For Ex: class, static, public, void, abstract, final etc.

    Identifiers

    Identifiers are the names given by programmer to identify a class or method or variable.
    An identifier should begin with an alphabet later on we can use digits. We do not use keywords as identifiers and also we don't use special character except _ and $ (Underscore and dollar).

    Operators

    Operators are symbols which are used to perform some calculation.
    For ex: +, -, *, / etc.

    Following Operators are there:

    1) Arithmetic operators:- These operators are used for calculations.
    For ex: +, -, *, /, etc.

    2) Relational operators:- These operators are used to check relation between two entities.Result of these operators is always a boolean value i.e, True or False.
    For ex: >, >=, <, <=, ==, !=, etc.

    3) Logical operators:- These operators takes two boolean and gives output in one boolean.
    For ex: &&(AND), ||(OR), !(NOT).

    4) Concatenation operators:- These operators is used to join two strings.
    If any one input is string then "+"(Plus) acts as an concatenation operator.
    For ex: "ab" + "cd" = "abcd"

    Literals

    Literals are nothing but users data.
    For ex: 10+20
    here 10 and 20 are literals.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: