Java Software Architect Set 3
Free Online Best Java Software Architect MCQ Questions for improve your basic knowledge of Java Software Architect. This Java Software Architect set 3 test that contains 25 Multiple Choice Questions with 4 options. You have to select the right answer to a question.
Start
Congratulations - you have completed Java Software Architect Set 3.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1 |
Which keyword is used for accessing the features of a package?
A | package |
B | import |
C | extends |
D | export |
Question 2 |
In which process, a local variable has the same name as one of the instance variables?
A | Serialization |
B | Variable Shadowing |
C | Abstraction |
D | Multi-threading |
Question 3 |
Which of the following for loop declaration is not valid?
A | for ( int i = 99; i >= 0; i / 9 ) |
B | for ( int i = 7; i <= 77; i += 7 ) |
C | for ( int i = 20; i >= 2; - -i ) |
D | for ( int i = 2; i <= 20; i = 2* i ) |
Question 4 |
Evaluate the following Java expression, if x=3, y=5, and z=10:
++z + y - y + z + x++
A | 24 |
B | 23 |
C | 20 |
D | 25 |
Question 5 |
Which of the following is an immediate subclass of the Panel class?
A | Applet class |
B | Window class |
C | Frame class |
D | Dialog class |
Question 6 |
In which memory a String is stored, when we create a string using new operator?
A | Stack |
B | String memory |
C | Heap memory |
D | Random storage space |
Question 7 |
Which of the following is a marker interface?
A | Runnable interface |
B | Remote interface |
C | Readable interface |
D | Result interface |
Question 8 |
What do you mean by nameless objects?
A | An object created by using the new keyword. |
B | An object of a superclass created in the subclass. |
C | An object without having any name but having a reference. |
D | An object that has no reference. |
Question 9 |
Which option is false about the final keyword?
A | A final method cannot be overridden in its subclasses |
B | A final class cannot be extended |
C | A final class cannot extend other classes |
D | A final method can be inherited |
Question 10 |
Which of the following is a valid long literal?
A | ABH8097 |
B | L990023 |
C | 904423 |
D | 0xnf029L |
Question 11 |
The JDBC-ODBC bridge allows _____to be used as____
A | JDBC drivers, ODBC drivers |
B | Drivers, Application |
C | ODBC drivers, JDBC drivers |
D | Application, drivers |
Question 12 |
Which of the following is false?
A | The rt.jar stands for the runtime jar |
B | It is an optional jar file |
C | It contains all the compiled class files |
D | All the classes available in rt.jar is known to the JVM |
Question 13 |
Which method of the Class.class is used to determine the name of a class represented by the class object as a String?
A | getClass() |
B | intern() |
C | getName() |
D | toString() |
Question 14 |
In java, jar stands for_____
A | Java Archive Runner |
B | Java Application Resource |
C | Java Application Runner |
D | None of the above |
Question 15 |
Which of the following is a reserved keyword in Java?
A | object |
B | strictfp |
C | main |
D | system |
Question 16 |
What do you mean by chained exceptions in Java?
A | Exceptions occurred by the VirtualMachineError |
B | An exception caused by other exceptions |
C | Exceptions occur in chains with discarding the debugging information |
D | None of the above |
Question 17 |
An interface with no fields or methods is known as a ______.
A | Runnable Interface |
B | Marker Interface |
C | Abstract Interface |
D | CharSequence Interface |
Question 18 |
What is the use of the intern() method?
A | It returns the existing string from memory |
B | It creates a new string in the database |
C | It modifies the existing string in the database |
D | None of the above |
Question 19 |
What does the expression float a = 35 / 0 return?
A | 0 |
B | Not a Number |
C | Infinity |
D | Run time exception |
Question 20 |
Which of the following creates a List of 3 visible items and multiple selections abled?
A | new List(false, 3) |
B | new List(3, true) |
C | new List(true, 3) |
D | new List(3, false) |
Question 21 |
What is the use of w in regex?
A | Used for a whitespace character |
B | Used for a non-whitespace character |
C | Used for a word character |
D | Used for a non-word character |
Question 22 |
Which of the following is true about the anonymous inner class?
A | It has only methods |
B | Objects can't be created |
C | It has a fixed class name |
D | It has no class name |
Question 23 |
Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?
A | javap tool |
B | javaw command |
C | Javadoc tool |
D | javah command |
Question 24 |
Which of these classes are the direct subclasses of the Throwable class?
A | RuntimeException and Error class |
B | Exception and VirtualMachineError class |
C | Error and Exception class |
D | IOException and VirtualMachineError class |
Question 25 |
Which package contains the Random class?
A | java.util package |
B | java.lang package |
C | java.awt package |
D | java.io package |
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
Get Results
There are 25 questions to complete.
← |
List |
→ |
Return
Shaded items are complete.
1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 |
End |
Return
You have completed
questions
question
Your score is
Correct
Wrong
Partial-Credit
You have not finished your quiz. If you leave this page, your progress will be lost.
Correct Answer
You Selected
Not Attempted
Final Score on Quiz
Attempted Questions Correct
Attempted Questions Wrong
Questions Not Attempted
Total Questions on Quiz
Question Details
Results
Date
Score
Hint
Time allowed
minutes
seconds
Time used
Answer Choice(s) Selected
Question Text
All done
Need more practice!
Keep trying!
Not bad!
Good work!
Perfect!