Y
Q. Which field cannot be changed after the object has been constructed?
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. Which of these packages contain classes and interfaces used for input & output operations of a program?
Q. Which system property stores installation directory of JRE?
Q. What will be the output of the following Java program? class dynamic_initialization { public static void main(String args[]) { double a, b; a = 3.0; b = 4.0; double c = Math.sqrt(a * a + b * b); System.out.println(c); } }
Q. What is JDBC?
Q. What will be the output of the following Java code? class Output { public static void main(String args[]) { Double i = new Double(257.578); int x = i.intValue(); System.out.print(x); } }
Q. What is the output of the following code?
Q. Which one of the following is correct for directive in JSP?
Q. Which attribute is used to specify static factory-method?
Q. How many of the String objects are eligible for garbage collection right before the end of the main method?
Q. What will be the output of the following Java program? interface calculate { int VAR = 0; void cal(int item); } class display implements calculate { int x; public void cal(int item) { if (item<2) x = VAR; else x = item * item; } } class interfaces { public static void main(String args[]) { display[] arr=new display[3]; for(int i=0;i<3;i++) arr[i]=new display(); arr[0].cal(0); arr[1].cal(1); arr[2].cal(2); System.out.print(arr[0].x+" " + arr[1].x + " " + arr[2].x); } }
Embed
WhatsApp
Facebook
Telegram
Share in MCQ Buddy Groups
Discusssion
Login to discuss.