This quiz is conducted as part of the activity based class and its score will be considered for the continuous evaluation of the course "Programming with Java"
Int [] myList = {"1", "2", "3"};
Int [] myList = (5, 8, 2);
Int myList [] [] = {4,9,7,0};
Int myList [] = {4, 3, 7};
Interface
String
Float
Unsigned
Finally
Compilation fails.
The code runs with no output.
An exception is thrown at runtime.
Nothing. The program will not compile because no exceptions are specified.
Nothing. The program will not compile because no catch clauses are specified.
Hello world.
Hello world Finally executing
2
3
4
2.5
Java Myfile 222
Java Myfile 1 2 2 3 4
Java Myfile 1 3 2 2
Java Myfile 0 1 2 3
Boolean b1 = 0;
Boolean b2 = 'false';
Boolean b3 = false;
Boolean b4 = Boolean.false();
Boolean b5 = no;
String s1 = null;
String s2 = 'null';
String s3 = (String) 'abc';
String s4 = (String) '\ufeed';
1, 2 and 3
2, 3 and 4
3, 4 and 5
4, 5 and 6
Test( )
Test(void)
Public Test( )
Public Test(void)
Wait!
Here's an interesting quiz for you.