what is Encapsulation? How to define a well-encapsulated class?
- access to these variables using public method
what is overloaded method?
same class - same name - different parameter list
- relationship among access modifiers of overriding method & overridden method
- same name - same number of method arguments - same return type
what is checked exception?
java.lang.Exception
- type of unchecked exception? (7)
java.lang.Exception & java.lang.RuntimeException
- type of error? (4)
-
String is immutable –> what does this mean?
difference method - constructor
-
what happens when a class implements an interface?
-
derived class constructor - base class constructor
a derived class constructor must always call a base class constructor
what values can be passed to case statement in switch?
can switch work with Array? What can it work with?