Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Applet
« Previous
Next »
Which of the following creates a List with 3 visible items and multiple selection disabled?
Options
- new List(3, false)
- new List(true, 3)
- new List(3, True)
- new List(false,3)
CORRECT ANSWER : new List(3, false)
Discussion Board
List
new List(3,false) is the correct answer as it will create the list with 3 visible items and having the multiple selection as disabled.
For example:
import java.awt.List; // is used to include the functions of list
List list = new List(5); //this list will have 5 visible rows
List list = new List(5, false); //this list will have 5 visible rows and multiple selection disabled
Rohit Sharma 09-30-2014 05:51 PM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲