Question: Java Part - A Section 1[70.5=3.5 Marks] State whether the following statements are True or False: Q1. A ciass file contains source codes. [True /

Java
Java Part - A Section 1[70.5=3.5 Marks] State whether the following statements

Part - A Section 1[70.5=3.5 Marks] State whether the following statements are True or False: Q1. "A ciass" file contains source codes. [True / false] Q2. The JVM starts the execution from the main method. [true / False] Q3. The 0 is a boolean value in Java. [True / False] Q4. A final method of a super class can be overidden in the subclass. [True / False] Q5. All local variables except objects declared in a method need to be initialized. [True / False] Q6. A method declared as abstract in a class can have a body. [True / False] Q7. The class ArrayindexOfBoundsException is defined in javalang package. [True / False] Part - A Section 2[100.5=5 Marks] Choose the appropriate answer from the given list that matches with the following statements: [ boolean, int, float, double, abstract, public, protected, default, false, true, 0,1,0.0, implements, extends, java.lang, java.util, java.io, super, inheritance, encapsulation, polymorphism, abstraction, final, static, while, do-while, interface, +, ?:. pi, e, PI] Q8. This keyword is used to create an object of a class type. Q9. This keyword defines a block of the stafements that may throw an excepfion. Q10. It is the teature of OOP where one object behaves in different ways. Q11. This is executed automatically when the object is created. Q12. Ihis keyword is used to derive subclass from the superclass. Q13. This keyword is used in the subclass constructor to invoke the constructor of the superciass. Q14, A class declared with this keyword cannot be extended. Q15. This access modifier allows subclasses to access fields delined in their super class, but doesn't allow general public access. tag2cof20

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!