Question

1.    Predict the output of the code public class Animal {     public static void main(String args[])              {                        public int localVar = 5;              }          }

A Error : Illegal Start of Expression
B Compile successfully
C Run Time Exception
D Access specifier not mentioned
E None`
Practice Next

Hey! Ask a query