Docsity

Java programming PPT, Slides of Java Programming

Partial preview of the text

Download Java programming PPT and more Slides Java Programming in PDF only on Docsity!

Topic: Unit-2Topic: Unit-

Department of BCA

Subject Name: JAVA PROGRAMMING

Class: II BCA Semester : III (2020-2021)

Constants

  • (^) A constant value is the one which does not change during the execution of a program.

Backslash Character Constants

Variables

  • A variable is a data name that may be used to store a data value.
  • Variable is an identifier which can be used to identify input data in a program.

Primitive data types Primitive data types are those whose variables allows us to store only one value but they never allows us to store multiple values of same type.

Derived data types Derived data types are those whose variables allow us to store multiple values of same type. But they never allow to store multiple values of different types.

User defined data types User defined data types related variables allows us to store multiple values either of same type or different type or both. This is a data type whose variable can hold more than one value of dissimilar type, in java it is achieved using class concept.

ARITHMETIC OPERATORS RELATIONAL OPERATORS

LOGICAL OPERATORS ASSIGNMENT OPERATORS

BIT WISE OPERATORS