Tag: programming languages

Questions Related to programming languages

What will be the result of executing the following code? // Filename; SuperclassX.java package packageX; public class SuperclassX { protected void superclassMethodX() { } int superclassVarX; } // Filename SubclassY.java 1. package packageX.packageY; 2. 3. public class SubclassY extends SuperclassX 4. { 5. SuperclassX objX = new SubclassY(); 6. SubclassY objY = new SubclassY(); 7. void subclassMethodY() 8. { 9. objY.superclassMethodX(); 10. int i; 11. i = objY.superclassVarX; 12. } 13. }

  1. Compilation error at line 5

  2. Compilation error at line 9

  3. Runtime exception at line 11

  4. None of these


Correct Option: D
  1. serialization support

  2. platform independent

  3. object diagnostic output

  4. run-time class information


Correct Option: A,C,D
  1. afxdlg.h header file.

  2. afxdlgs.h header file

  3. afxprp.h header file

  4. afxproppg.h header file


Correct Option: B