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 |
Explain with example the concept of constant variable in java.
What Is Resource Leak?
Is string an object?
What is the default execution method in java?
What type of language is java?
What is the purpose of return statement?
What is the difference between menuitem and checkboxmenu item?
how can be object class inherited to all class in a program when java does not support multiple inheritance??
What do you understand by soft reference?
Can I have constructor in Interface?
What is method overloading in java ?
is it mandatory to deaclare all variables public static fianl in interfaces?if i declare like in the below program, public interface A { public static final int I=0; int j=0; } in interface A,what is the difference between I,j?