An exception is an abnormal condition which occurs during the running of a program. For example division by zero, invalid array index are the instances of exceptions. It’s better to anticipate such errors in advance and take necessary precautions while writing source code itself.
An Array is a similar data- type with similar values. In Java, arrays can only be of a single type like Integers, Strings, Float, Double and so on.
The scope of variables can be accessed by Access specifiers in Java. There are four levels of access specifiers in Java. They are Public, Private and Protected.