Month: May 2019

Java Lesson Understanding Variable Scope

public class TestScope { public static void main (String argv) {                int x; // ———————-> X Exist until Closing bracket                // Understanding Scope for x               {               char y;                x = 15; // Notice we can access x here                y = 65;               System.out.println (“The Sum of x + y