Ch2 Primitive Data Types

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What does ASCII stand for?

American Standard Code for Information Interchange

What are the only valid values of boolean?

True and false

What is a character set?

an ordered list of characters, with each character corresponding to a unique number

What's the difference between char and String?

char holds one character while String holds multiple characters

Java assumes all floating point literals are...

double

Which primitive data types represent integers?

byte, short, int, and long

What are the eight primitive data types in Java?

byte, short, int, long, float, double, char, and boolean

How many primitive data types are there in Java?

Eight

What are control characters?

Characters that don't have a specific symbol that represents them, like the null and carriage return marks

What is primitive data and how is it different from objects?

Primitive data are basic values like numbers or characters, objects are more complex entities that contain primitive data to define them

What is the difference between the numeric primitive data types?

Their size and values they can store

A char variable in Java can store any character from what character set?

Unicode character set

What variable stores a single character?

char

Which primitive data types represent floating point numbers?

float and double

Java assumes all integer literals are...

int

In Java, character literals are distinguished by...

single quotes


Ensembles d'études connexes

A-Level Physics - Quantum Physics (13)

View Set

ITELEC2c Quizzes prelims-finals 4ITD

View Set

Unit 3: Iran & Islamic Revolution Questions & Definitions

View Set

ASTRO CH. 6 Reading / Concept Quiz

View Set

Managerial Accounting | Chapter 2

View Set

Introduction to Pharmacology - Chapter 1 - Learning Objectives

View Set

Multiples of 10, 100, and 1,000!

View Set