V

Vinay • 28.75K Points
Instructor II

Q. What is the use of Observable class?

  • (A) It is used to create global subclasses
  • (B) It is used to create classes that other part of the program can observe
  • (C) It is used to create classes that can be accessed by other parts of program
  • (D) It is used to create methods that can be accessed by other parts of program
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.

Related MCQs on JAVA

Q. What is the variables declared in a class for the use of all methods of the class called?

Q. What is the output of the following code? public class Test{ public static void main(String args[]){ double[] myList = {1, 5, 5, 5, 5, 1}; double max = myList[0]; int indexOfMax = 0; for(int i = 1; i < myList.length; i++){ if(myList[i] > max){ max = myList[i]; indexOfMax = i; } } System.out.println(indexOfMax); } }

Q. Given the following statement: huey.setDouble(8.0*32.2+1.0);~~~What must be the data type of huey?.

Q. What is the output of the following application?

Q. What is the difference between servlets and applets? i. Servlets execute on Server; Applets execute on browser ii. Servlets have no GUI; Applet has GUI iii. Servlets creates static web pages; Applets creates dynamic web pages iv. Servlets can handle only a single request; Applet can handle multiple requests

Q. What will be the output of the following Java code? class area { int width; int length; int area; void area(int width, int length) { this.width = width; this.length = length; } } class Output { public static void main(String args[]) { area obj = new area(); obj.area(5 , 6); System.out.println(obj.length + " " + obj.width); } }

Q. Which of these is used to access member of class before object of that class is created?

Q. Which of the following operator in Java have context dependent meaning

Q. All Java components require names. Names used for classes, variables, and methods are called?

Q. What will happen if we provide concrete implementation of method in interface?

Learn All JAVA MCQs


Question analytics