Relational - Comparison Operators

अब 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


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

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