Correct Answer: Orange && Worng Answer: Red
1. Which of the following variable declaration would not compiled in a java program
View Answer
Explanation: The syntax of variable in java is < datatype variablename; >
2. A constructor is related with
View Answer
Explanation: Constructors are the member functions which are called automatically whenever an object is created. It is a mandatory functions to be called for an object to be created as this helps in initializing the object to a legal initial value for the class.
3. JVM is a
View Answer
Explanation: JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed.
4. What is byte code in context of Java
View Answer
Explanation: Java use compiler and interpreter both where compiler translate java code into byte code and interpreter translate byte code into binray code.
5. The Java run time system automatically calls this method while garbage collection
View Answer
Explanation: ‘finalize()’ method is automatically called by the java compiler before destroying the object to free any resources.
6. An overloaded method consist of
View Answer
Explanation: Overloading method to declear multiple function with same name but use different number of argument.
7. A protected member can be accessed in
View Answer
Explanation: Protected data member and method are only accessible by the classes of the same package and the subclasses present in any package.
8. All exception types are sub classes of the built in class in
View Answer
Explanation: All Exception types are subclasses of the built-in class Throwable. Exception is used for exceptional conditions that user program should catch.
9. In Java , objects are passed as
View Answer
Explanation: Objects are passed by call by reference refers to passing the real reference of the variable in memory.
10. Which of following not a component of Java IDE
View Answer
Explanation: An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development.
11. Which of following is incorrect var-name
View Answer
Explanation: Variable name always starts with letters.
12. Applet cann’t be viewed using
View Answer
Explanation: Not Avilable
13. Java compiler Javac translate Java source code into
View Answer
Explanation: The Java compiler (javac) converts the source code into bytecode.
14. In Java character const value is its integer value in the
View Answer
Explanation: Not Avilable
15. Which one of the used to document the program and improve its readability
View Answer
Explanation: A comment is a programmer-readable explanation in a program’s code, script, or another file that is not meant to be seen by the user running the program.
Categories
C Programming MCQsC++ Programming MCQsJAVA MCQsVisual Basic MCQsData Structure MCQsSoftware Package MCQsComputer Organization and Architecture MCQsOperating System MCQsDigital Electronics MCQsDBMS MCQsSystem Analysis and Management Information System MCQsSystem Maintenance MCQsData Communication and Networking MCQsInternet & Web Technology MCQsSoftware Engineering MCQsManagement (Common) MCQsSystem Software MCQsComputer Graphics MCQsArtificial Intelligence & Expert System MCQsE-Commerce MCQsMultimedia MCQsPower Electronics MCQsTesting & Maintenance Electrical Machine MCQsAutomatic Control System MCQsAdvance Communication System MCQsDigital Electronics MCQs