Question: Java Multiple choice questions What is the keyword used to declare constants in Java? Select one: a. const b. None of the other answers c.

Java Multiple choice questions

What is the keyword used to declare constants in Java?

Select one:

a. const

b. None of the other answers

c. finally

d. static

Which of the following represents defects detected during program execution, but they are not checked at compilation time?

Select one:

a. None of the other answers

b. Checked exception

c. Runtime exception

d. Logic exception

Learner[][] ccL; Given a class Learner and the above statement, which of the following is correct?

Select one:

a. None of the other answers

b. It declares an object of Learner.

c. It creates an array of Learner array.

d. It creates an object of Learner.

Which of the following could be used for creating GUI-based applications?

Select one:

a. The Java package javax.swing

b. All of the other answers

c. The Java package java.awt

d. JavaFX

Which of the following could be used for writing data into a file in Java?

Select one:

a. All of the other answers

b. DataOutputStream

c. PrintWriter

d. FileOutputStream

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!