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

Answer Posted / anjani kumar jha

U cant extends String class because it is final class.

Is This Answer Correct ?    29 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can list be null in java?

569


If try block is successfully executed, Then Is Finally block executed?

602


Does java vector allow null?

531


What is volatile data type?

549


Can final class have constructor?

492






Difference between process and thread?

595


Why is java called java?

539


When parseint method can be used?

533


What is the difference between the ">>" and " >>>" operators in java?

503


What do you mean by order of precedence and associativity?

539


What are the rules for variable declaration?

496


Why is string builder not thread safe?

587


Write a program in java to create a doubly linked list containing n nodes.

551


What is the difference between a switch statement and an if statement?

511


Can java list be null?

543