M
Q. Where is System class defined?
No solution found for this question. Add Solution and get +2 points.
You must be Logged in to update hint/solution
Login to discuss.
Be the first to start discuss.
Q. Choose the Compound Assignment Arithmetic Operators in Java below.
Q. What will be the value of "x" after execution ?
Q. What is the result of compiling and running the following code? class Base{ private Base(){ System.out.print("Base"); } } public class test extends Base{ public test(){ System.out.print("Derived"); } public static void main(String[] args){ new test(); } }
Q. Which operator is used to invert all the digits in binary representation of a number?
Q. What is the result of the following code snippet? abstract class MyAbstract { private void myMethod() { System.out.println("Private Method"); } } class MyClass extends MyAbstract { public static void main(String[] args) { MyClass obj = new MyClass(); obj.myMethod(); } }
Q. What will be the output?
Q. Name of the process by which objects of one class acquire the properties of objects of another is called
Q. Java Virtual Machine is platform independent.
Q. What will be the output of the following Java statement? class output { public static void main(String args[]) { double a, b,c; a = 3.0/0; b = 0/4.0; c=0/0.0; System.out.println(a); System.out.println(b); System.out.println(c); } }
Q. The Enhanced FOR loop in Java was introduced by ___.
Embed
WhatsApp
Facebook
Telegram
Share in MCQ Buddy Groups
Discusssion
Login to discuss.