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 |
How can we achieve thread safety in java?
What happens if constructor is private?
What is nextline method in java?
Can we extend singleton class?
How will you print number in reverse (descending) order in BST.
How many bits is a string?
What happens if an exception is throws from an object's destructor?
What are green threads in java?
what is Portal(web based online portal)?
How many Java environments are there?
1 Answers Phantom Technologies,
what are the new features available in java 1.5 version?
3 Answers Accenture, Features, Motorola,
int a=10,b=20,c=30 a= b+c;b=a+c;c=a+b; System.out.println("The value is"+a+b+c;