Relational - Comparison Operators

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Relation for Number Variables

Java supports: > >= < <=

Relation for String Variables

Strings are compared letter by letter in order of position in the alphabet All capital letters have a lower value than any lower case letters

Strict Equality Operator ==

Are both the value and type of two variables the same, without conversion?

Comparing Different Types

Different types will be converted to a common value first/ String to Number Boolean to Number Object toString()

Equality for Reference Variables

Reference variables are not equal if they don't both reference the Object in memory.

Equality for Primitive Variables

Using comparison operator with two == means two values on either side of operator have the same value.

Test Inequality , != and !==

Values are converted before comparing Loose and strict inequality are both supported


Set pelajaran terkait

Melting Point Determination and Re-crystallization Labs

View Set

Testicular Cancer Med. Surg/B3E5

View Set

Rocks and minerals- definitions and terms

View Set

Quiz: Assisting a Patient With Ambulation Using a Cane

View Set

APUSH Take Home Test #3; 1815-1850

View Set

Watch--Consider: Political Parties, Chapter 13 Enduring Democracy

View Set

chapter 35 assessment of musculoskeletal function

View Set

Chapter 6 - Instruments of Real Estate Finance

View Set