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

Which of the classes will have more memory allocated?

532


Write java program to reverse string without using api?

543


What is the functionability stubs and skeletons?

679


Is string pool garbage collected?

542


What is an argument java?

527






How variables are stored in memory?

531


Write a function for palindrome and factorial and explain?

651


Can private class be inherited in java?

546


What are the major advantages of internal iteration over external iteration?

566


What is void data type?

568


What do you mean by mnemonics?

525


Difference between object instantiation and construction ?

576


Can set contain duplicates?

538


In Java list the methods that can be overridden?

564


What is a numeric string?

559