Java Aptitude Test
Online Test for Java Programming Multiple Choice Test Covers Java, Introduction to Java, Java for Dummies, OOPs in Java, Programming in Java
Questions
A ………….is a software unit that combines a structured set of data with a set of operations for inspecting and manipulating that data.
- class
- object
- method
- signature
A class declaration in JAVA looks much like a struct declaration in
- C
- Pascal
- Fortran
- PL/SQL
A …………..is a blueprint for objects, which defines a type of object according to the data, the object can hold and the operations the object can perform.
- class
- object
- method
- signature
The ________ of a method is the combination of the methods named the method’s input types (i.e. number of parameters and their types).
- signature
- class
- method
- inheritance
…..……..method is a method that defines all aspects of itself except what code executes.
- An instance
- An abstract
- A class
- None of the above
Does the Java language provide virtual method, like C++?
- Yes
- No
………..class is a class designed with implementation gaps for sub-class to fill in.
- An instance
- An abstract
- A class
- None of the above
A final class is a class that is declared with…………keywords so that it can never be sub classes.
- super
- final
- root
- none of the above
In JAVA language, the operations you can perform on an object reference is/are
- assigned the reference to a value
- invoked a method on the reference
- extracted a field from the reference
- casted the reference to another
The ……………keyword is a two-argument operator that tests whether or not, the run time type of its first argument is assignment compatible with its second argument.
- final
- super
- instance of
- implicit
…………is a class defined in the java.lang package, whereas it is a primitive data type defined in the Java language.
- Int
- Float
- Char
- Integer
Which of the following is not a reserved keyword in Java?
- Abstract
- Boolean
- Break
- Count
Which of the following is not a reserved keyword in Java?
- Static
- Switch
- Main
- Import
The………….keyword gives a class explicit access to the constructors, methods and variables of its super class.
- root
- main
- super
- implicit
Are Java objects pointer?
- Yes
- No
- Both (1) and (2)
- None of these
The……..suffix directs the compiler to create a float value from a sequence of characters representing a floating point number; otherwise the compiler would by default create either value or an int value.
- c or C
- i or I
- F or f
- D or d
Which of the following is not primitive type in Java?
- Double
- Float
- Large
- Short
Which of the following is class literal for the Primitive Type Boolean?
- boolean.class
- Boolean.type
- boolean.Class
- Boolean.Class
In a method 'invocation', Java passes
- arguments by reference
- arguments by value
- arguments by pointer
- arguments by variable
Which of the following is class instance for the Primitive Type Boolean?
- boolean.class
- Boolean.type
- boolean.Class
- Boolean.Class
Which of the following is class instance for the Primitive int?
- Integer.Type
- integer.type
- integer.class
- Integer.class
Which of the following is class literal for the Primitive Types short?
- short.class
- Short.Class
- short.Class
- short.Class
The Java Virtual Machine performs
- loading
- linking
- initialization
- none of the above
The………program is a class file dissembler that comes with the JDK (1.0.2 and 1.1)
- javap
- a applet
- beam
- java servlet
Java………………is a language of machine instructions understood by the Java Virtual Machine and usually generated (compiled) from Java language source code.
- javap
- applet
- beans
- bytecodes