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

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)