हिंदी

What are Data Types?

Advertisements

प्रश्न

What are Data Types?

दीर्घउत्तर
Advertisements

उत्तर

Data Types in Java are used to specify the type of data that a variable can store. They determine the nature of values, the memory required for storing data and the operations that can be performed on them.

  1. Primitive Data Types: These are the basic built-in data types used to store simple values such as numbers, characters and Boolean values. Examples include byte, short, int, long, float, double, char and boolean.
  2. Non-Primitive Data Types: These are reference data types used to represent objects and more complex data structures. Examples include classes, arrays, interfaces and String.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Primitive Values, Wrapper Classes, Types and Casting - EXERCISE [पृष्ठ ११२]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
अध्याय 5 Primitive Values, Wrapper Classes, Types and Casting
EXERCISE | Q 2. (i) | पृष्ठ ११२
धीरज मेहरोत्रा Computer Science [English] Class 12
अध्याय 6 Variables and Expressions
EXERCISE | Q 2. | पृष्ठ १३१
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×