10.Fix the annotations

10.Fix the annotations

Professional Development

48 Qs

quiz-placeholder

Similar activities

AND-X01

AND-X01

Professional Development

45 Qs

4.JUnit Introduction

4.JUnit Introduction

Professional Development

45 Qs

3.JUnitin Action

3.JUnitin Action

Professional Development

46 Qs

10.Command line arguments + java

10.Command line arguments + java

Professional Development

48 Qs

28-Multithreading + java

28-Multithreading + java

Professional Development

43 Qs

Review Education

Review Education

Professional Development

50 Qs

3rd Quarter (Long quiz)

3rd Quarter (Long quiz)

Professional Development

48 Qs

Literary terms

Literary terms

KG - Professional Development

51 Qs

10.Fix the annotations

10.Fix the annotations

Assessment

Quiz

English

Professional Development

Hard

Created by

ANIL KUMAR

FREE Resource

48 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is Java @override annotation?
An annotation used to indicate that a method is overriding a method in its superclass.
An annotation used to specify the target and retention level of an annotation.
An annotation used to declare a custom annotation in Java.
An annotation used to mark a method as deprecated.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How to add annotations in Java?
By using the @Override annotation.
By declaring an annotation using the @interface element.
By using the @Target annotation to specify where the annotation can be used.
By using the @Retention annotation to specify the retention level of the annotation.

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Is @override annotation mandatory?
Yes, it is mandatory to use the @Override annotation when overriding a method.
No, the @Override annotation is optional and not required when overriding a method.
@Override annotation is used to declare a custom annotation, not for method overriding.
@Override annotation is used to mark a method as deprecated.

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are 3 types of annotations?
Descriptive, Evaluative, Informative
Class, Method, Field
Target, Retention, Inherited
Single, Multiple, Marker

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is @ovveride in Java?
An annotation used to indicate that a method is overriding a method in its superclass.
A function that requires a subclass to provide method implementations already provided by its superclass.
An annotation used to mark a method as deprecated.
An annotation used to specify the retention level of an annotation.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Why @override is used in Java?
To specify the target and retention level of an annotation.
To indicate that a method is overriding a method in its superclass.
To declare a custom annotation in Java.
To mark a method as deprecated.

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is called annotation?
A note added by way of comment or explanation.
A special keyword used in Java programming.
A method for enabling additional functionality in a program.
A type of loop used in programming.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?