programming languages Online Quiz - 223
Description: programming languages Online Quiz - 223 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
class C1 { static interface I { static class C2 { } } public static void main(String a[]) { C1.I.C2 ob1=new C1.I.C2(); System.out.println("object created"); } } What is the result of attempting to compile and run the program?
class C1 { static class C2 { static int i1; } public static void main(String a[]) { System.out.println(C1.C2.i1); } } What is the result of attempting to compile and run the program?
Which declare a compilable abstract class? (Choose all that apply.)
Which are legal declarations?
Which is true? (Choose all that apply. )
Given: 1. class Voop { 2. public static void main(String [] args) { 3. doStuff(1); 4. doStuff(1, 2); 5. } 6. // insert code here 7. } Which, inserted independently at line 6, will compile? (Choose all that apply.)
Given the following, 1. interface Base { 2. boolean m1 (); 3. byte m2(short s); 4. } Which code fragments will compile? (Choose all that apply.)
Which declare a compilable abstract class? (Choose all that apply.)
Given: 1. class Voop { 2. public static void main(String [] args) { 3. doStuff(1); 4. doStuff(1, 2); 5. } 6. // insert code here 7. } Which, inserted independently at line 6, will compile? (Choose all that apply.)
Which are legal declarations? (Choose all that apply. )
Can there be multiple tag in tiles-defs.xml?