0

Core Java Fundamentals

Description: Notes and Test Papers for Core Java Programming, Advanced Java, Java Swings, Servlets, Socket Programming, Network Programming in Java
Number of Questions: 22
Created by:
Tags: Core Java Programming Advanced Java Java Swings Servlets Socket Programming Network Programming in Java Programming
Attempted 0/22 Correct 0 Score 0

To create swing components, which of the following is imported?

  1. javax.awt.*

  2. java.awt.*

  3. javax.swing.*

  4. java.swing.*


Correct Option: C

Swing elements are preceded by the letter

  1. S

  2. A

  3. X

  4. J


Correct Option: D

How many primitive data types are present in Java?

  1. 6

  2. 8

  3. 12

  4. 14


Correct Option: B

How many reference data types are present in Java?

  1. 2

  2. 3

  3. 5

  4. 8


Correct Option: B

Which of the following is/are container(s) in Java?

  1. Frame

  2. Panel

  3. Both 1 and 2

  4. None of these


Correct Option: C

How many bitwise operators are present in Java?

  1. 4

  2. 6

  3. 8

  4. 10


Correct Option: B

Which method of graphic object is used to display an image in applet?

  1. DrawImage

  2. DrawImg

  3. DreewImig

  4. None of these


Correct Option: A

The border layout has ___ sections.

  1. 5

  2. 6

  3. 7

  4. 8


Correct Option: A

Which tag is used to pass parameter to applet through HTML file?

  1. Param

  2. Parameter

  3. Pameters

  4. Para


Correct Option: A

How many different types of layouts are supported by Java?

  1. 2

  2. 3

  3. 4

  4. 5


Correct Option: D

Which of the following packages is/ are needed in applet?

  1. java.awt.*

  2. java.applet.*

  3. both 1 and 2

  4. none of these


Correct Option: C

Runnable is

  1. class

  2. method

  3. interface

  4. none of the above


Correct Option: C

Wrapper classes are found in

  1. java.security package

  2. java.util package

  3. java.io package

  4. java.lang package


Correct Option: D

Applet can be viewed by using

  1. applet viewer tool

  2. show applet tool

  3. display applet tool

  4. appletviewer tool


Correct Option: D

How many types of threads are there in Java?

  1. 2

  2. 3

  3. 4

  4. 5


Correct Option: A

The card layout stores layouts in

  1. stack

  2. queue

  3. list

  4. flow


Correct Option: A

The JDBC classes are present in ____ package.

  1. java.dbms

  2. java.Odbc

  3. java.Jdbc

  4. java.sql


Correct Option: D
Explanation:

Java.Sql provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language.

For networking in Java, which package needs to be imported?

  1. java.net

  2. java.socket

  3. java.networking

  4. java.serversocket


Correct Option: A

Date is a class present in

  1. java.io

  2. java.util

  3. java.utility

  4. java.date


Correct Option: B

The default layout for applets is

  1. grid layout

  2. card layout

  3. grid bag layout

  4. flow layout


Correct Option: D

Random is a class present in

  1. java.util

  2. java.io

  3. java.utility

  4. java.math


Correct Option: A

Which of the following are server side applets?

  1. Java Beans

  2. EJB

  3. Applets

  4. Servlets


Correct Option: D
- Hide questions