programming languages Online Quiz - 195
Description: programming languages Online Quiz - 195 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Can we define global methods in a report
Using which section do we implement the Parallel report
Where do we store the temporary objects/sections
A Vector is declared as follows. What happens if the code tried to add 6 th element to this Vector
Which is the data structure used to store sorted map elements ?
Stateful Session beans contain
What is the output of following piece of code ? int x = 2; switch (x) { case 1:System.out.println(”1?); case 2: case 3:System.out.println(”3?); case 4: case 5:System.out.println(”5?); }
A method is defined in a class as : void processUser(int i) { } If this method is overriden in a sub class,_
package statictest; public class TestStatic { public static void message() { System.out.println("In message"); } public static void main(String arg[]) { TestStatic a = null; a.message (); } }
package staticinit; public class TestStaticInit { { System.out.print("I am in Init "); } TestStaticInit() { System.out.print("Constructor "); } static { System.out.print("I am in Static "); } static { System.out.print("I am in Static1 "); } public static void main(String[] args) { System.out.println("Before calling "); TestStaticInit init = new TestStaticInit(); TestStaticInit init1 = new TestStaticInit(); } }
package staticinit; public class TestStaticInit { { System.out.print("I am in Init "); } TestStaticInit() { System.out.print("Constructor. "); } static { System.out.print("I am in Static. "); } static { System.out.print("I am in Static1. "); } public static void main(String[] args) { } }
package statictest; class TestStaticSub { static int p = 100; public static void printP() { System.out.println("P in parent class..." + p); } } public class TestStaticVariable extends TestStaticSub { public static void printP() { p = 200; System.out.println("P in sub class ..." + p); } public static void main(String[] args) { TestStaticSub tsv = new TestStaticVariable(); tsv.printP(); } }
package statictest; public class TestStaticVar { static int p =100; static void setP(int p) { this.p = p; System.out.print("p== "+p); } public static void main(String[] args) { setP(500); System.out.print("p=="+p); } }
Examine the structure of the EMPLOYEES table:EMPLOYEE_ID NUMBER Primary KeyFIRST_NAME VARCHAR2(25)LAST_NAME VARCHAR2(25)Which three statements insert a row into the table? (Choose three.)A. INSERT INTO employeesVALUES ( NULL, 'John', 'Smith');B. INSERT INTO employees( first_name, last_name)VALUES( 'John', 'Smith');C. INSERT INTO employeesVALUES ( '1000', 'John', NULL);D. INSERT INTO employees (first_name, last_name, employee_id)VALUES ( 1000, 'John', 'Smith');E. INSERT INTO employees (employee_id)VALUES (1000);F. INSERT INTO employees (employee_id, first_name, last_name)VALUES ( 1000, 'John', ' ');
Comments can be nested.
Even an empty file is a valid source file.
Octal literals begin with 'O'
main method can be overloaded
main method can be final.
finalize method is used to release system resources.