0% found this document useful (0 votes)
176 views5 pages

PRPQUESTION

The document contains 30 multiple choice questions about Java, databases, and other programming topics. It tests knowledge on topics like return types of methods, exceptions, static methods, applets, servlets, threads, and more. The questions cover concepts from basic to more advanced.

Uploaded by

Anmol Saxena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
176 views5 pages

PRPQUESTION

The document contains 30 multiple choice questions about Java, databases, and other programming topics. It tests knowledge on topics like return types of methods, exceptions, static methods, applets, servlets, threads, and more. The questions cover concepts from basic to more advanced.

Uploaded by

Anmol Saxena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

1.

What is the return type of getParameter(string) in method


of applet class.
● String
● Font
● Object
● Parameter
2. When browser is restored after being ionized ………
method of Applet is called.
● Init() & paint()
● Start() & paint()
● Paint() & start()
● Paint() & stop()
3. Sleep method of thread class is a ………………..
● Final method
● Static method
● Native method
● Private method
4. Which is not legal identifier ……………..
● 2myname
● _myname
● my name
● my-name
5. Put_line is a …………….. defined in DBMS_OUTPUT
● Procedure
● Function
● Trigger
● Package
6. According to JDBC statement smallINT is ANSI SQL
corresponding to…………..
● Int
● Short
● Long
● Float
7. In Java which event handling method called when page
finish to load
● onFinish
● onLoad
● onCompile
● onImage
8. Service method is called by …………….
● Servlet
● Servletcontainer
9. Which of the following is property of the script string
object
● Size
● Length
● Character
● Index
10. Supper class of all class represent output stream buffer
● Input Stream
● Writer
● Reader
● Output stream
11. What is default layout of jApplet
● Border layout
● Flow layout
12. What is the immediate super class of panel
● Component
● Container
● Applet
● Japplet
13. What is the return type of getParameternames( )
● String
● Integer
● Float
● Long
14. What is the argument of init method
● servlet config
● servlet Content
● servlet Request
● servlet Response
15. init() method of servlet throws ………… exception
● i/o exception
● servlet exception
● exception
● none of these
16. when java is loaded by default which package is imported
● java.lang
● java.object
● java.Object
● java.lang.object
17. Swing is ……………..
● platform independent
● platform dependent
● none
18. Which is not an argument of applet
● Height
● Code
● width
● Value
19. how many method of an Action Listener Interface exit
● 1
● 2
● 3
● 5
20. update method always call which method
● paint()
● repaint()
● main()
● start()
21. When applet loaded by default which package should be
imported
● Import Java.applet
● Import Java.awt
● Import Java.Applet
● Import Java.object
22. Which is not an argument of exception
● Throw
● Throws
● Final
● Finally
23. Stack over flow is an …………..
● Error
● Exception
● i/o Exception
● arithmetic Exception
24. Static method is access by …………..
● constructor
● reference
● class name
● we can’t access
25. Jvm is platform dependent
● true
● false
26. instead of trigger is for
● table
● view
● all view
● none
27. stub is created in which side
● server
● client
● both side
● none
28. which clause is used in inline view
● where
● into
● between
● from
29. What is the maximum size of an cookie
● 4kb
● 20kb
● 300kb
● 30kb
30. Who is responsible for creating ejb bean
● Home object
● Ejb object
● Home interface
● Ejb interface

You might also like