Following quiz provides Multiple Choice Questions (MCQs) related to Core Java. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Answer : B ExplainationObjects are allocated memory in heap memory space.
Answer : D ExplainationThe long data type is represented by 64-bit two's complement integer.
Minimum value: -263
Maximum value: 263-1
Answer : B ExplainationShort variable has default value of 0 if defined as an instance/static variable.
Answer : B ExplainationVariables, methods, and constructors which are declared protected can be accessed by any class lying in the same package.
Answer : A ExplainationClass variables are variables declared with in a class, outside any method, with the static keyword.
Answer : C ExplainationJava Runtime Environment is an implementation of the Java Virtual Machine which executes Java programs. It provides the minimum requirements for executing a Java application.
Answer : A ExplainationStatic binding occurs during Compile time.
Answer : A ExplainationAfter a thread is started, via its start() method of the Thread class, the JVM invokes the thread's run() method when the thread is initially executed.
Answer : A ExplainationThe garbage collector invokes an object's finalize() method when it detects that the object has become unreachable.
Answer : A ExplainationThrowable is the parent of both Error and Exception class.
java_questions_answers.htm
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4