if i have one string class then how can you achive this
class functionality of this class?
Answers were Sorted based on User's Feedback
Answer / ganesh
MyString extends String{
}
This will give all the functionalites of String Object for
MyString
Above code is not working. because String is a final class.
Final class can't be extend.
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / n. bala subramanian
MyString extends String{
}
This will give all the functionalites of String Object for
MyString
| Is This Answer Correct ? | 0 Yes | 5 No |
What is run time allocation?
what is the default value of a variable char?(If not assigned)
write java code to print second max number in the array
What is the difference between error and an exception?
Can we make constructors static?
How to make a write-only class in java?
What are the differences between forwarding () method and sendredirect() methods?
Does isempty check for null?
What is final keyword?
What is map and hashmap? also tell the difference.
How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size
When do we use synchronized blocks and advantages of using synchronized blocks?