Tag: programming languages
Questions Related to programming languages
-
Struct
-
Delegate
-
string
-
Enumeration
-
Member Function
-
Same name as Class name
-
Default constructor initializes all non-initialized fields and variables to zero.
-
Compiler adds an empty constructor, if we do not write our own constructor
-
Applet version has main method
-
GUI components are added explicitly to the Applet
-
Aplet class is declared private
-
None of the above
-
Java Foundation Course
-
Java Fundamental Classes
-
Java Foundation Classes
-
None of the above
-
final
-
public
-
native
-
static
-
foreach(x) System.out.println(z);
-
for(int z : x) System.out.println(z);
-
while( x.hasNext()) System.out.println( x.next());
-
for( int i=0; i< x.length; i++ ) System.out.println(x[i]);
-
2
-
2 3
-
Compilation fails.
-
1 2 3
-
The code on line 31 throws an exception
-
The code on line 33 throws an exception
-
The code on line 35 throws an exception
-
The code on line 33 executes successfully
-
Alpha a = x;
-
Foo f= (Alpha)x;
-
Foo f= (Delta)x;
-
Beta b = (Beta)(Alpha)x;