Answer Posted / maurya
We can`t extends String class because java make it final
and thats why we say String in java are immutable.
final..
class--->can not inharitted.
method-->can not overridden
variable->its valu can not change after once initialized.
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
What are the types of arrays in java?
What is the difference between && and & in java?
What is the purpose of static methods and variables?
How do you use wildcards?
What is treeset in java?
What is Java Reflection API? Why it’s so important to have?
Explain static nested classes ?
What is functional interface in java example?
What are the differences between abstract class and interface?
Can arraylist hold different types java?
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
what is the use of bean managed and container managed with example?
Explain about anonymous inner classes ?
What is getkey () in java?
What are the two types of streams offered by java 8?