Primitive Data Types

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

How many primitive data types are there in java?

8

What are float and double used for?

Floating-point real number.

What is a char used for?

It holds one character (in Unicode)

What is an object data type?

Its class

Is String a primitive data type?

No

What are int, byte, short, or long variables used for?

Storing numbers

What is the difference between the various primitive data types that hold numbers?

They differ on the range of numbers they can represent, and the more numbers they hold the bigger their size gets

Possible values for a boolean?

True or false


संबंधित स्टडी सेट्स

Multiplication and Division Properties of Exponents

View Set

Chapter 4: Switched Networks (NetAcad) (Exam)

View Set

Lecture 7: Care of the Patient with Altered Immune/Allergic Response

View Set