adv java bsc
adv java bsc
1) Which of the following option leads to the portability and security of Java?
i) The applet makes the Java code secure and portable
ii) Bytecode is executed by JVM
iii) Use of exception handling
iv) Dynamic binding between objects
5) Which of the following is/are steps for the servlet life cycle?
i) Servlet class is loaded ii) Servlet instance is created
iii) init,Service,destroy method is invoked iv) All of these
7) JDBC is __________
i) Java Database Communications ii) Java Database Concepts
iii) Java Database Connectivity iv) Java Database Connections
8) Which of the following displays components row-by-row in the order in which
they were added to the JFrame?
i) CardLayout ii) FlowLayout
iii) BorderLayout iv)GridLayout
10) Method __________ class object is get called when button is clicked.
i) MouseEvent ii) KeyEvent
iii) ItemEvent iv) ActionEvent
15) Which http method sends by browser that asks the server to get the page
only?
i)get ii) put
iii)post iv) option
21) Which interface provides object to store data fetched by queries from
database?
i) Statement
ii) ResultSet
iii) Connection
iv) None of these
23) In Swing , ___________ class allows the editing of multiple line text.
i) JList
ii) JTextArea
iii) JCheckBox
iv) JTree
26) What is the name of the Swing class that is used for frames?
i) Window ii) Frame
iii) JFrame iv) SwingFrame
30) Which of the following are the life cycle method of jsp?
i) jspInit() ii) _jspService()
iii) jspDestroy() iv) All of these
40) Which is passive swing control that does not support any interaction with the
user?
i)JChoice ii)JLabel
iii) JList iv)JButton
i) JList
ii) JComboBox.