Core Java Fundamentals
Notes and Test Papers for Core Java Programming, Advanced Java, Java Swings, Servlets, Socket Programming, Network Programming in Java
Questions
To create swing components, which of the following is imported?
- javax.awt.*
- java.awt.*
- javax.swing.*
- java.swing.*
Swing elements are preceded by the letter
- S
- A
- X
- J
How many primitive data types are present in Java?
- 6
- 8
- 12
- 14
How many reference data types are present in Java?
- 2
- 3
- 5
- 8
Which of the following is/are container(s) in Java?
- Frame
- Panel
- Both 1 and 2
- None of these
How many bitwise operators are present in Java?
- 4
- 6
- 8
- 10
Which method of graphic object is used to display an image in applet?
- DrawImage
- DrawImg
- DreewImig
- None of these
The border layout has ___ sections.
- 5
- 6
- 7
- 8
Which tag is used to pass parameter to applet through HTML file?
- Param
- Parameter
- Pameters
- Para
How many different types of layouts are supported by Java?
- 2
- 3
- 4
- 5
Which of the following packages is/ are needed in applet?
- java.awt.*
- java.applet.*
- both 1 and 2
- none of these
Runnable is
- class
- method
- interface
- none of the above
Wrapper classes are found in
- java.security package
- java.util package
- java.io package
- java.lang package
Applet can be viewed by using
- applet viewer tool
- show applet tool
- display applet tool
- appletviewer tool
How many types of threads are there in Java?
- 2
- 3
- 4
- 5
The card layout stores layouts in
- stack
- queue
- list
- flow
The JDBC classes are present in ____ package.
- java.dbms
- java.Odbc
- java.Jdbc
- java.sql
For networking in Java, which package needs to be imported?
- java.net
- java.socket
- java.networking
- java.serversocket
Date is a class present in
- java.io
- java.util
- java.utility
- java.date
The default layout for applets is
- grid layout
- card layout
- grid bag layout
- flow layout
Random is a class present in
- java.util
- java.io
- java.utility
- java.math
Which of the following are server side applets?
- Java Beans
- EJB
- Applets
- Servlets