Question
Which of the following feature provides the facility for multiple inheritance?
Select correct option:
Adapter classes
Wrapper classes
Interfaces
Collections
Question
To compare the values of two strings, _______ must be used.
Select correct option:
= Operator
== Operator
(Equal) Operator
None of above
Question
The collection API are defined in _______ package.
Select correct option:
java.io
java.util
java.awt
java.sql
Question
The relationship between class and interface is called ________
Select correct option:
‘Is a’ relationship
‘Has a’ relationship
‘Responds to’ relationship
None of the given options
Question
Which of the following statement object is used to execute stored procedures?
Select correct option:
Statement
PreparedStatement
CallableStatement
None of given options
Question
The toString() method returns a _________ representation of _______
Select correct option:
int, string
string, int
string, object
object, string
Question
Which of the following syntax is used to attach an input stream to console?
Select correct option:
FileReader fr = new FileReader(“input.txt”);
FileReader fr = new FileReader(FileDescriptor.in);
FileReader fr = new FileReader(FileDescriptor);
FileReader fr = new FileReader(console);
Question
FTP (File Transmission Protocol)works on _________ port.
Select correct option:
21
23
80
84
Question
Which of the following package needs to be import while handling files?
Select correct option:
java.util
java.io
java.awt (Not Sure)
javax.swing
Question
Which of the following is NOT true for an Applet?
Select correct option:
A small program written in Java and included in a HTML page.
It is independent of the operating system on which it runs.
They have no access to the client’s file system.
An applet is a Panel that allows interaction with a Java program