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 |
Can we create a class inside a class in java?
can we Connect Applet to Data Base ? with Discriptiom. and also What is Diff. from Applet & Servlet?
Explain methods specific to list interface?
explain System.out.println()
How do you initialize an arraylist in java?
10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } } 10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } }
What is data structure in java?
What is Ideal Design of Class?
Why is multithreading important?
How do generics work in java?
When is the finally clause of a try-catch-finally statement executed?
Can list have duplicates in java?