Wednesday, 5 February 2014

ICSE 10th Standard Notes – Constants and Operators in Java

Constants :

Constants are the data items whose values will not change when the program is executed. The constant variables are declared using the keyword “ final ”.

Example : final double PI=3.142;

Advantages of using constants :-

  • They make the program easier to read and to check for the errors.
  • If the constant values are subjected to change then only change the declaration of the variables. There is no need to search for the program for every occurrence of a specific number.

Operators in Java :

The operation are represented by operators and the objects of the operations are referred to as operands.

Java provides the following operators :Arithmetic Operators
Increment/Decrement Operators
Relational Operators
Logical Operators
Shift Operators
Bitwise Operators
Assignment Operators



ICSE 10th Standard Notes – Shift and Bitwise Operator in Java
ICSE 10th Standard Notes – Boolean Expressions in Java
ICSE 10th Standard Notes – Expressions in Java
ICSE 10th Standard Notes – Arithmetic Operators and their precedence in Java
ICSE 10th Standard Notes – Increment and Decrement Operators in Java
ICSE 10th Standard Notes – Relational Operators in Java
ICSE 10th Standard Notes – Assignment and Shorthand Operator in Java
ICSE 10th Standard Notes – Statements in Java
ICSE 10th Standard Notes – Variables in Java
ICSE 10th Standard Notes – Escape Sequences in Java
ICSE 10th Standard Notes – Some Operators in Java
ICSE 10th Standard – Comment Statements in Java

Get Ebooks delivered to your email id

Comments

Subscribe to our channel

Facebook

Powered by Blogger.

Home | Contact Us | DMCA | Terms of Service | Privacy | Advertise

Maven Scientists