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
Answer / anjani kumar jha
U cant extends String class because it is final class.
Is This Answer Correct ? | 29 Yes | 1 No |
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 |
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 |
What about main() method in java ?
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
what invokes a threads run() method? : Java thread
What is comparable and comparator interface? List their differences
What are three types of loops in java?
When we will use an Interface and Abstract class?
What is meant by Static query and Dynamic query?
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
Explain try and catch keywords in java?
how to connect one jsp page to another jsp page????
what is difference between excute query ()and execute update ()?
adapter class ?