Java - Classes and Objects
What will be the output of this code?
class Cat {
String name = "Whiskers";
}
public class Main {
public static void main(String[] args) {
Cat c = new Cat();
System.out.println(c.name);
}
}