Multiple choice technology programming languages

which option is a declaration of an array of Strings, called sSyntax, containing 50 elements shared between instances of a class? Incorrect. The correct option is as follows

    1. static String [50] sSyntax = new String[];
    1. String [] sSyntax = new String[50];
    1. static String [] sSyntax = new String[50];
    1. static string [] sSyntax = new string[50];
Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A static array is shared across all instances of a class, while instance arrays are separate for each object. The correct syntax is 'static String [] sSyntax = new String[50];' which declares a static array of 50 String references. Option D incorrectly uses lowercase 'string' - Java is case-sensitive and the type must be 'String'.