V
Q. Method __________ has same name but different parameter list and different definition
No solution found for this question. Add Solution and get +2 points.
You must be Logged in to update hint/solution
Login to discuss.
Q. Which part of code gets executed whether exception is caught or not?
Q. Determine output: public class Test{ public static void main(String args[]){ MyClass obj = new MyClass(); obj.val = 1; obj.call(obj); System.out.println(obj.val); } } class MyClass{ public int val; public void call(MyClass ref){ ref.val++; } }
Q. Identify the prototype of the default constructor. Public class Solution {}
Q. What are packages in Java?
Q. Which of these are selection statements in Java?
Q. What is the output of this program?
Q. interface Base{ boolean m1 (); byte m2(short s); } which two code fragments will compile? 1. interface Base2 implements Base {} 2. abstract class Class2 extends Base { public boolean m1(){ return true; }} 3. abstract class Class2 implements Base {} 4. abstract class Class2 implements Base { public boolean m1(){ return (7 > 4); }} 5. abstract class Class2 implements Base { protected boolean m1(){ return (5 > 7) }}
Q. What will be the output of the following Java code? class output { public static void main(String args[]) { String c = "Hello i love java"; int start = 2; int end = 9; char s[]=new char[end-start]; c.getChars(start,end,s,0); System.out.println(s); } }
Q. JAR stands for?
Q. Given the following statement: huey.setDouble(8.0*32.2+1.0);~~~What must be the data type of huey?.
Embed
WhatsApp
Facebook
Telegram
Share in MCQ Buddy Groups
Discusssion
Login to discuss.