View more random threads:
- CS601 Data Communication Solved Quiz No. 3 Solutions...
- cs401 current solve quiz 11-1-2012
- cs401 Quiz spring May 2011
- cs610 computer network solved quiz no 2 on 18th november...
- cs504 solve quiz no 2 December 2011-2012
- mkt501 solve quiz april 2011
- MGT111 Introduction to Public Current Quiz Online on 11...
- MKT501 Marketing Management Quiz NO.1 Fall Semester 2012
- Solved quiz of mcm301 second 2 quiz fall 2010 december
- MIDTERM EXAMINATION Spring 2011 ECO401 Economics solve...
CS506 Web Design and Development Quiz No.1 Solved Fall Semester 2012-13
1 What is true about abstract classes?
Ans: The objects of abstract classes can not be instantiated
2 What if we declare main method as private?
Ans: Program compiles but does not run
Reason : if we declare main method as private then the program compiles successfully but does not run because main method is the actual execution area if declared private then other classes will not be able to get access to main method and will not display (as in case of GUI)
3 which statement is used to execute Select statement?
Ans: rs = executeQuery(sql)
4 GetColumnCount ( ) is method of
Ans: ResultsetMetaData p#175
5 Window Listener events are of . types
Ans: 7 p#133
6 Constructor is replaced with . In Aplet
Ans init( ) p#202
7 Is it possible to have more than one main method within the same class?
Ans: False
Reason : There is only one main method all other classes are declared inside the main method to get access for this purpose main method is always declared as public
8 Create, Drop, Alter are
Ans DDL (Data Definition Languages) p#158
Sponsored Links
9 DNS stands for ..
Ans: Data Source Name p#150
10 Pure abstract class is ..
Ans: Interface p#98
Another Quiz
Which of the following is a general purpose container?
Select correct option:
JFrame
Dialog
JPanel
JApplet
Which of the following package needs to be import while handling files?
Select correct option:
java.util
java.io
java.awt
javax.swing
Exception handling code is written in _______
Select correct option:
try block ot confirm
catch block
finally block
throws clause
Which of the following stream is a Node stream?
PrintWriter
FileWriter
BufferedReader
All of given option
Which of the following stream read/write data in the form of bytes?
FileReader
FileWriter
PrintWriter
FileInputStream
Which of the following command is used to compile Java code?
java filename
javac filename.java
javac filename
java filename.java
There are currently 1 users browsing this thread. (0 members and 1 guests)