From 9d576c6c3ba8e95495b834b10e3a5bb38f726a46 Mon Sep 17 00:00:00 2001 From: cbolinius Date: Thu, 19 Sep 2024 18:41:39 -0400 Subject: [PATCH] Typo correction in 01-introduction-to-java.md Corrected typo in line 430 (changed "also know as" to "also known as") --- 01-introduction-to-java.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01-introduction-to-java.md b/01-introduction-to-java.md index d335a75..92393d0 100644 --- a/01-introduction-to-java.md +++ b/01-introduction-to-java.md @@ -427,7 +427,7 @@ It makes sense to say "Hey String class, tell me the String value for this integ ### 1.5.5. Accessing data members How we access data members (also known as attributes or instance variables) is exactly analogous to how we access methods. -If a class has an instance or class variable (also know as a `static` variable, since it is declared with the keyword `static`) that is accessible to code outside of the class, it can be referred to via an instance variable or the class name, respectively. +If a class has an instance or class variable (also known as a `static` variable, since it is declared with the keyword `static`) that is accessible to code outside of the class, it can be referred to via an instance variable or the class name, respectively. For example, class `Integer` has a class variable called `BYTES` that reports the number of bytes of memory used to store an int value. Since it is a class variable, we access it using the class name: