Enter your search terms
Submit search form
Web
examineonline.googlepages.com
Online Exam
>>
Programming
>>
Java
>>
Java Basics 1
Menu
Programming
COMPTIA
GMAT
English
IQ
DataBase
OS
MCSE
CISCO
Finance
Management
Health
Soft Skills
Web Building
Multimedia
Java Basics 1
1 . All of Swing's text components inherit from the same superclass
A.
True
B.
False
2 . _________ can display and edit multiple lines of text
A.
JtextArea
B.
Jtextfield
C.
JtextPane
D.
Jeditorpane
3 . JPasswordField is a lightweight component that allows the editing of a single line of text where the view indicates something was typed, but does not show the original characters.
A.
True
B.
False
4 . A thread is a program's path of execution
A.
True
B.
False
5 . Extending a class is the way Java inherits methods and variables from a parent class.
A.
True
B.
False
6 . Classes can implement methods and contain variables that are not constants
A.
True
B.
False
7 . Implementing an interface and extending a class are the two ways of creating threads
A.
True
B.
False
8 . Inheritance interacts with encapsulation also.
A.
True
B.
False
9 . The concept of polymorphism is often expressed by the phrase
A.
One interface, One method
B.
Multiple interface, Multiple method
C.
Multiple interface, one Method
D.
One interface, multiple methods
10 . Java doesnot support Multiline comment
A.
True
B.
False
11 . A single-line comment begins with a ________ and ends at the end of the line
A.
/
B.
//
C.
/*
D.
**
12 . A method in Java, that calls itself is said to be recursive.
A.
True
B.
False
13 . ________ enhance performance and functionality in various programming languages
A.
threads
B.
constants
C.
variables
D.
none of the above
14 . Thread class is defined in the package ______
A.
java.awt
B.
java.lang
C.
java.thread
15 . 'super' is a Java keyword
A.
true
B.
false
16 . extends is the keyword used to inherit a class
A.
true
B.
false
17 . AWT uses native ________ components
A.
GUI
B.
Graphics
18 . Jbutton is Swing is equivalent to ______ in AWT
A.
Label
B.
Button
C.
TextField
19 . Each subclass Inherits state (in the form of variable declarations) from the superclass
A.
true
B.
false
20 . ________ text component is best suited for controlling the format of a single line of user-entered text?
A.
TextField
B.
formattedTextField
C.
JformattedTextField
Test Name :
Java Basics 1
Category :
Java
Number of Question :
20
Pass Score :
80
Test Result
Your Score :
Passing Score :
80
Result :
Copyright by
VanTuMinh
© 2007