aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Methods (GATE - CS)
  • Which of the following methods is not present in the Choi...
Multiple choice

Which of the following methods is not present in the Choice class in Java?

  1. getItemAtIndex(int index)

  2. getItem(int index)

  3. getSelectedIndex()

  4. getItemCount()

  5. getSelectedItem()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct choice. There is no method named getItemAtIndex(int index) in the Choice class.

Keep practicing — related questions

  • Which three methods, inserted individually at line 14, will correctly complete class Two? class One { void ...
  • Following code will result in: class A { public static void main(String [] args) { B b = new A(); } } class...
  • What will be printed out if this code is run with the following command line? java myprog good morning publ...
  • Which is true about a method-local inner class?
  • Which method must be defined by a class implementing the java.lang.Runnable interface?
  • What will be the output? public class Base { public static final String FOO = "foo"; public static void mai...
  • What is output of the above program? class conditional { public static void main(String args[]) { int i = 2...
  • Following code will result in: class A { int b = 1; public static void main(String [] args) { System.out.pr...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy