in Technology by
What are the uses of Marker interface?

1 Answer

0 votes
by

Marker interface is used as a tag that inform the Java compiler by a message so that it can add some special behavior to the class implementing it. Java marker interface are useful if we have information about the class and that information never changes, in such cases, we use marker interface represent to represent the same. Implementing an empty interface tells the compiler to do some operations.

It is used to logically divide the code and a good way to categorize code. It is more useful for developing API and in frameworks like Spring.

Related questions

0 votes
    What are the components of a marker interface? (a) Fields and methods (b) No fields, only methods (c) Fields, no ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    What are the components of a marker interface? (a) Fields and methods (b) No fields, only methods ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What is marker interface in JAVA?...
asked Dec 21, 2020 in Technology by JackTerrance
0 votes
    Which of the following is not a marker interface? (a) Serializable (b) Cloneable (c) Remote (d) Reader This ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which of the following is not a marker interface? (a) Serializable (b) Cloneable (c) Remote (d) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    ____ is a hard disk interface that uses parallel signal to transfer data and information Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    I'm using flutter_map package and I need to draw path between 2 marker. I know map_view package provided ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 20, 2022 in Education by JackTerrance
0 votes
    See the picture below. In my application (with MapView) usage, I would like to use such default markers ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    It sounds so simple but I can't find any newbie tutorial: Could anybody give me a simple example ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    What are the .sca files and what are the uses?...
asked Sep 23, 2021 in Technology by JackTerrance
0 votes
    What are the uses of Amazon Glacier? Select the option from below list : a) access infrequent data ... AWS Interview Questions and Answers Agile Interview Questions Answers...
asked Jul 21, 2021 in Technology by Editorial Staff
0 votes
0 votes
    What are the uses of NumPy?...
asked Apr 24, 2021 in Technology by JackTerrance
0 votes
    What are delegates in C# and the uses of delegates?...
asked Mar 31, 2021 in Technology by JackTerrance
...