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



if i have one string class then how can you achive this class functionality of this class?..

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

if i have one string class then how can you achive this class functionality of this class?..

Answer / guest

sdfg

Is This Answer Correct ?    0 Yes 4 No

if i have one string class then how can you achive this class functionality of this class?..

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

Post New Answer

More Core Java Interview Questions

Is there any way to skip finally block of exception even if some exception occurs in the exception block?

0 Answers  


What is dynamic binding?

2 Answers  


How can i add a button in applet in java ???

2 Answers  


If goto and const is reserve words than why it is not work in java?

0 Answers  


What are 3 data types?

0 Answers  


What are JVM.JRE, J2EE, JNI?

0 Answers  


What is replacefirst in java?

0 Answers  


what is Abstract DataType?

1 Answers  


What is update method and when it is called?

2 Answers   TCS,


Can we declare the main method of our class as private?

0 Answers  


What is the different types of functions?

0 Answers  


What is the differences between c++ and java? Explain

0 Answers  


Categories