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 is the order of method invocation in an Applet?
In Java, what’s the purpose of static methods and static variables?
What is meant by object oriented programming – oop?
When to use runnable interface vs thread class in java?
what is the difference between process and thread? : Java thread
What is the synonym of string?
What is java util list?
all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.
what difference between throw and throws in exception handling.
Explain where variables are created in memory?
What is a java predicate?
What is an interface in java? Explain