Home
Subscribe TechModgy to learn about new technologies!

Consider the following class definition.
Class Student extends String
{
}
What happens when we try to compile this class?

A. Will not compile because class body is not defined

B. Will not compile because class is not declared public

C. Will compile successfully.

D. Will not compile because String is abstract

Please do not use chat terms. Example: avoid using "grt" instead of "great".