class Operators1 { { int i=0; } } Select one: 1 1 2 1 1 1 0 1 2 0 0 1 Question 15 Not yet answered Marked out of 1.00 Flag question Question text What is String in Java? Select one: method class variable object Question 16 Not yet answered Marked out of 1.00 Flag question Question text Which of the following jump statements will skip the remaining code within its body? Select one: break exit return continue Question 17 Not yet answered Marked out of 1.00 Flag question Question text What will be the output of the following program? class A { { int i=0; if (i=0) { } } } Select one: Compilation Error Hello World! i=0 Hello World! None of these Question 18 Not yet answered Marked out of 1.00 Flag question Question text Which is a valid declaration of a string? Select one: Question 19 Not yet answered Marked out of 1.00 Flag question Question text Consider the following code block int[] a = {5,6,7,8,9}; int[] b = a; b[2] = 10; What will be the value of a[2]? Select one: 8 10 7 6 Question 20 Not yet answered Marked out of 1.00 Flag question Question text What will be the output of the following program? class booloperators { { boolean var1 = true; boolean var2 = false; }} Select one: false true 1 0 Question 21 Not yet answered Marked out of 1.00 Flag question Question text What will be the output of the following program? public class StaticTest { { A a1=new A(); A a2=new A(); B b1=new B(); } } class A { public A() { } } class B { public B() { } } Select one: Non-static block of a instance of Class A Constructing object of type A Non-static block of a instance of Class A Constructing object of type A Non-static block of a instance of Class B Constructing object of type B Compilation Error Non-static block of a instance of Class A Constructing object of type A Non-static block of a instance of Class A Constructing object of type A Non-static block of a instance of Class B Constructing object of type A Question 22 Not yet answered Marked out of 1.00 Flag question Question text What will be the output of the following program? class Relational_operator { { int var1 = 5; int var2 = 6; } } Select one: true false 1 0 Question 23 Not yet answered Marked out of 1.00 Flag question Question text Point out the error line in the following program. 1.class welcome { 3.{ 5. } 6. } Select one: Line number 1 All of these Line number 2 Line number 4 Question 24 Not yet answered Marked out of 1.00 Flag question Question text Point out the error line in the following program. 1. public class MyParameterizedConstructor 2. { 4. 6. this.name = str; 9. } 10. 12. MyParameterizedConstructor mpc = new MyParameterizedConstructor("Madhu Raj"); 13. } 14. } Select one: Line number 12 Line number 5 No Error We get the output as : I am inside parameterized constructor. The parameter value is: Madhu Raj Line number 6
Standard input is empty
Main.java:11: error: class, interface, or enum expected Select one: ^ Main.java:34: error: '{' expected variable ^ Main.java:68: error: ';' expected Select one: ^ Main.java:69: error: ';' expected Compilation Error ^ Main.java:70: error: ';' expected Hello World! ^ Main.java:71: error: <identifier> expected i=0 ^ Main.java:71: error: ';' expected i=0 ^ Main.java:72: error: ';' expected Hello World! ^ Main.java:73: error: ';' expected None of these ^ Main.java:74: error: ';' expected Question 18 ^ Main.java:75: error: ';' expected Not yet answered ^ Main.java:76: error: ';' expected Marked out of 1.00 ^ Main.java:76: error: ';' expected Marked out of 1.00 ^ Main.java:77: error: ';' expected Flag question ^ Main.java:78: error: ';' expected Question text ^ Main.java:80: error: ';' expected Which is a valid declaration of a string? ^ Main.java:80: error: ';' expected Which is a valid declaration of a string? ^ Main.java:80: error: ';' expected Which is a valid declaration of a string? ^ Main.java:80: error: ';' expected Which is a valid declaration of a string? ^ Main.java:81: error: ';' expected Select one: ^ Main.java:82: error: unclosed character literal String s2 = 'null'; ^ Main.java:82: error: unclosed character literal String s2 = 'null'; ^ Main.java:84: error: unclosed character literal String s3 = (String) 'abc'; ^ Main.java:84: error: unclosed character literal String s3 = (String) 'abc'; ^ Main.java:86: error: <identifier> expected Question 19 ^ Main.java:87: error: ';' expected Not yet answered ^ Main.java:88: error: ';' expected Marked out of 1.00 ^ Main.java:88: error: ';' expected Marked out of 1.00 ^ Main.java:89: error: ';' expected Flag question ^ Main.java:90: error: ';' expected Question text ^ Main.java:92: error: ';' expected Consider the following code block ^ Main.java:92: error: ';' expected Consider the following code block ^ Main.java:92: error: <identifier> expected Consider the following code block ^ Main.java:96: error: ']' expected b[2] = 10; ^ Main.java:98: error: ';' expected What will be the value of a[2]? ^ Main.java:98: error: ';' expected What will be the value of a[2]? ^ Main.java:98: error: ';' expected What will be the value of a[2]? ^ Main.java:98: error: ']' expected What will be the value of a[2]? ^ Main.java:99: error: ';' expected Select one: ^ Main.java:104: error: <identifier> expected Question 20 ^ Main.java:105: error: ';' expected Not yet answered ^ Main.java:106: error: ';' expected Marked out of 1.00 ^ Main.java:106: error: ';' expected Marked out of 1.00 ^ Main.java:107: error: ';' expected Flag question ^ Main.java:108: error: ';' expected Question text ^ Main.java:110: error: ';' expected What will be the output of the following program? ^ Main.java:110: error: ';' expected What will be the output of the following program? ^ Main.java:110: error: ';' expected What will be the output of the following program? ^ Main.java:110: error: ';' expected What will be the output of the following program? ^ Main.java:110: error: <identifier> expected What will be the output of the following program? ^ Main.java:119: error: ';' expected Select one: ^ Main.java:124: error: <identifier> expected Question 21 ^ Main.java:125: error: ';' expected Not yet answered ^ Main.java:126: error: ';' expected Marked out of 1.00 ^ Main.java:126: error: ';' expected Marked out of 1.00 ^ Main.java:127: error: ';' expected Flag question ^ Main.java:128: error: ';' expected Question text ^ Main.java:130: error: ';' expected What will be the output of the following program? ^ Main.java:130: error: ';' expected What will be the output of the following program? ^ Main.java:130: error: ';' expected What will be the output of the following program? ^ Main.java:130: error: ';' expected What will be the output of the following program? ^ Main.java:130: error: <identifier> expected What will be the output of the following program? ^ Main.java:160: error: ';' expected Select one: ^ Main.java:161: error: <identifier> expected Non-static block of a instance of Class A ^ Main.java:161: error: ';' expected Non-static block of a instance of Class A ^ Main.java:161: error: ';' expected Non-static block of a instance of Class A ^ Main.java:161: error: ';' expected Non-static block of a instance of Class A ^ Main.java:162: error: ';' expected Constructing object of type A ^ Main.java:162: error: ';' expected Constructing object of type A ^ Main.java:162: error: ';' expected Constructing object of type A ^ Main.java:163: error: <identifier> expected Non-static block of a instance of Class A ^ Main.java:163: error: ';' expected Non-static block of a instance of Class A ^ Main.java:163: error: ';' expected Non-static block of a instance of Class A ^ Main.java:163: error: ';' expected Non-static block of a instance of Class A ^ Main.java:164: error: ';' expected Constructing object of type A ^ Main.java:164: error: ';' expected Constructing object of type A ^ Main.java:164: error: ';' expected Constructing object of type A ^ Main.java:165: error: <identifier> expected Non-static block of a instance of Class B ^ Main.java:165: error: ';' expected Non-static block of a instance of Class B ^ Main.java:165: error: ';' expected Non-static block of a instance of Class B ^ Main.java:165: error: ';' expected Non-static block of a instance of Class B ^ Main.java:166: error: ';' expected Constructing object of type B ^ Main.java:166: error: ';' expected Constructing object of type B ^ Main.java:166: error: ';' expected Constructing object of type B ^ Main.java:167: error: ';' expected Compilation Error ^ Main.java:168: error: <identifier> expected Non-static block of a instance of Class A ^ Main.java:168: error: ';' expected Non-static block of a instance of Class A ^ Main.java:168: error: ';' expected Non-static block of a instance of Class A ^ Main.java:168: error: ';' expected Non-static block of a instance of Class A ^ Main.java:169: error: ';' expected Constructing object of type A ^ Main.java:169: error: ';' expected Constructing object of type A ^ Main.java:169: error: ';' expected Constructing object of type A ^ Main.java:170: error: <identifier> expected Non-static block of a instance of Class A ^ Main.java:170: error: ';' expected Non-static block of a instance of Class A ^ Main.java:170: error: ';' expected Non-static block of a instance of Class A ^ Main.java:170: error: ';' expected Non-static block of a instance of Class A ^ Main.java:171: error: ';' expected Constructing object of type A ^ Main.java:171: error: ';' expected Constructing object of type A ^ Main.java:171: error: ';' expected Constructing object of type A ^ Main.java:172: error: <identifier> expected Non-static block of a instance of Class B ^ 100 errors
Standard output is empty