In an RMI application, network data destined for a particular object received by an object is known as:
Correct Answer: Stub object
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
Result of compiling and running the given code? public class Test75 { public static void main(String[] args) { System.out.println(new A(){{}}.toString()); } } class A { public String toString() { return getClass().getName(); } }
Best way to access a HashMap of SortedSet entries?
What would be the result when the given code is compiled and ran? public class Test99 { int main() { System.out.println('alpha'); return 0; } public static void main(String args) { System.out.println('beta'); } final static public void main(String[] s) { System.out.println('gamma'); } }
Select all statements that are true?
Output of the given program? public class Test121 extends _Test121 { { System.out.print('_INIT'); } static { System.out.print('_STATIC'); } Test121() { System.out.print('_CONST'); } public static void main(String[] args) { new Test121(); System.out.print('_|'); new Test121(); } } class _Test121 { { System.out.print('_BIN'); } static { System.out.print('_START'); } _Test121() { System.out.print('_BASE'); } }
public class Test{ public static void main(String args[]){ int x = 10; x = myMethod(x--); System.out.print(x); } static int myMethod(final int x){ return x--; } } What will be the output after the following program is compiled and executed?
public class Tester{ static int x = 4; int y = 9; public Tester(){ System.out.print(this.x); // line 1 printVariables(); } public static void printVariables(){ System.out.print(x); // line 2 System.out.print(y); // line 3 } public static void main(String... args) { // line 4 new Tester(); } } What is the result of compiling and running the following code?
You have the following code in a file called Test.java: class Base{ public static void main(String[] args){ System.out.println("Hello"); } } public class Test extends Base{} The object is created with new keyword:
You have the following code in a file called Test.java: class Base{ public static void main(String[] args){ System.out.println("Hello"); } } public class Test extends Base{} What will happen if you try to compile and run this?
public class Test{ public static void main(String args[]){ add(); add(1); add(1, 2); } // insert code here } Choose all the lines which if inserted independently instead of "//insert code here" will allow the following code to compile: