Core Java Fundamentals

Notes and Test Papers for Core Java Programming, Advanced Java, Java Swings, Servlets, Socket Programming, Network Programming in Java

22 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

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

  1. javax.awt.*
  2. java.awt.*
  3. javax.swing.*
  4. java.swing.*
Question 2 Multiple Choice (Single Answer)

Swing elements are preceded by the letter

  1. S
  2. A
  3. X
  4. J
Question 3 Multiple Choice (Single Answer)

How many primitive data types are present in Java?

  1. 6
  2. 8
  3. 12
  4. 14
Question 4 Multiple Choice (Single Answer)

How many reference data types are present in Java?

  1. 2
  2. 3
  3. 5
  4. 8
Question 5 Multiple Choice (Single Answer)

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

  1. Frame
  2. Panel
  3. Both 1 and 2
  4. None of these
Question 6 Multiple Choice (Single Answer)

How many bitwise operators are present in Java?

  1. 4
  2. 6
  3. 8
  4. 10
Question 7 Multiple Choice (Single Answer)

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

  1. DrawImage
  2. DrawImg
  3. DreewImig
  4. None of these
Question 8 Multiple Choice (Single Answer)

The border layout has ___ sections.

  1. 5
  2. 6
  3. 7
  4. 8
Question 9 Multiple Choice (Single Answer)

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

  1. Param
  2. Parameter
  3. Pameters
  4. Para
Question 10 Multiple Choice (Single Answer)

How many different types of layouts are supported by Java?

  1. 2
  2. 3
  3. 4
  4. 5
Question 11 Multiple Choice (Single Answer)

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
Question 12 Multiple Choice (Single Answer)

Runnable is

  1. class
  2. method
  3. interface
  4. none of the above
Question 13 Multiple Choice (Single Answer)

Wrapper classes are found in

  1. java.security package
  2. java.util package
  3. java.io package
  4. java.lang package
Question 14 Multiple Choice (Single Answer)

Applet can be viewed by using

  1. applet viewer tool
  2. show applet tool
  3. display applet tool
  4. appletviewer tool
Question 15 Multiple Choice (Single Answer)

How many types of threads are there in Java?

  1. 2
  2. 3
  3. 4
  4. 5
Question 16 Multiple Choice (Single Answer)

The card layout stores layouts in

  1. stack
  2. queue
  3. list
  4. flow
Question 17 Multiple Choice (Single Answer)

The JDBC classes are present in ____ package.

  1. java.dbms
  2. java.Odbc
  3. java.Jdbc
  4. java.sql
Question 18 Multiple Choice (Single Answer)

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

  1. java.net
  2. java.socket
  3. java.networking
  4. java.serversocket
Question 19 Multiple Choice (Single Answer)

Date is a class present in

  1. java.io
  2. java.util
  3. java.utility
  4. java.date
Question 20 Multiple Choice (Single Answer)

The default layout for applets is

  1. grid layout
  2. card layout
  3. grid bag layout
  4. flow layout
Question 21 Multiple Choice (Single Answer)

Random is a class present in

  1. java.util
  2. java.io
  3. java.utility
  4. java.math
Question 22 Multiple Choice (Single Answer)

Which of the following are server side applets?

  1. Java Beans
  2. EJB
  3. Applets
  4. Servlets