give me the answer of this code
class A extnds String
This code we can write r not in Java? Explain?

Answer Posted / ashwini kumar vatsa

class A extends String
because String is a pre defined class that is bind with java
api.so when we declares this statements that means we want to
access the api class String,but it cannot be access by the
users.

Is This Answer Correct ?    4 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the features of interfaces in java?

743


What are triggers in DB? Explain their types. How do they work?

853


What are the advantages of java inner classes?

765


What are the differences between processes and threads?

742


What is annotation in java?

767


Explain restrictions on using enum?

816


What do you mean by collectors in java 8?

713


How many techniques can be employed to create a string object?

771


Why a dead thread occurs?

764


What is the covariant return type?

766


what are the states associated in the thread? : Java thread

815


Describe the Big-O Notation.

796


What is the point of java?

759


How will you communicate between two applets?

839


Can we create more than one object singleton class?

795