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

Answer Posted / satish

it is not posible to extend String class because it is
final.if class is final we can't extend that class.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are peerless components?

826


What is finally block?

741


How do you identify if jvm is 32-bit or 64-bit from java program?

725


Which is easier .net or java?

833


Why there is no call by reference in java?

688


Can we create an object of static class in java?

791


What is bean? Where it can be used?

830


When is the finalize() called?

902


Explain about anonymous inner classes in java?

777


What is the lifetime and scope of a variable?

743


How to overcome the exception object reference not set to an instance of object?

856


What is considered an anti pattern?

702


what is singleton class in java?

802


What are the basic concepts of OOPS in java?

749


What is the difference between overriding and overloading in OOPS.

800