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

What about main() method in java ?

0 Answers  


Class A extends Class B but Class A also inherit Super Class Object so it is multiple inheritence give reason in support of your answer

3 Answers  


what invokes a threads run() method? : Java thread

0 Answers  


What is comparable and comparator interface? List their differences

0 Answers  


What are three types of loops in java?

0 Answers  






When we will use an Interface and Abstract class?

9 Answers  


What is meant by Static query and Dynamic query?

2 Answers  


What is actual difference between statement,prepared statement and callable statement and when we have to use it? pls post a answer with code and clear explanation. thanks

2 Answers  


Explain try and catch keywords in java?

0 Answers  


how to connect one jsp page to another jsp page????

6 Answers   IIT, Symphony,


what is difference between excute query ()and execute update ()?

6 Answers   Symphony,


adapter class ?

2 Answers  


Categories