comments & operators

 Comments


There are three types of comments in java.

1) single line comment

  •  double slashes are used for single line comment.

//this is comment

2) multi line comments

  •  the text written between /* and */ are multiline comment.

/* this is a Multiline comment *.


Operators

  • An operator is symbol that takes one or more arguments and operates on them to produce a result.

  • There are many types of operators which are available in java.

  1. Arithmatic
  2. relational
  3. Logical
  4. Increment and decrement
  5. Assignment

No comments:

Post a Comment