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
Stateful Session beans contain
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 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); } }
main method can be overloaded
finalize method is used to release system resources.