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

Answers were Sorted based on User's Feedback



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

Answer / anjani kumar jha

U cant extends String class because it is final class.

Is This Answer Correct ?    29 Yes 1 No

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

Answer / 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

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

Answer / srikanth

u can just use those methods of string class

Is This Answer Correct ?    0 Yes 1 No

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

Answer / 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

More Core Java Interview Questions

How to find the length and capacity of a string buffer ?

2 Answers  


Can size_t be negative?

0 Answers  


How to perform merge sort in java?

0 Answers  


Can abstract class have private constructor?

0 Answers  


what is the use of Clonable,and serializable interface?

1 Answers  






who was the founder of java

32 Answers   CTS, HCL, ProKarma,


Explain thread in java?

0 Answers  


what is singleton class in java?

0 Answers   Cap Gemini,


What is stored procedure. How do you create stored procedure ?

0 Answers   GE,


What is difference in between java class and bean?

0 Answers  


Explain the importance of join() method in thread class?

0 Answers  


Explain creating threads by implementing runnable class?

0 Answers  


Categories