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

What is the different types of functions?

0 Answers  


we have two threads..both the threads are reading the data.. is there any need of synchronization there?...justify it?

4 Answers   IBM,


What’s the difference between callable and runnable?

0 Answers  


What are 4 pillers of object orinted programming?

0 Answers  


What is a Presistent Object?

0 Answers   InfoAxon Technologies,






different between exception and error? explaim check and uncheck exception

4 Answers  


what is platform dependent translation and platform dependent programming language

2 Answers  


To the class members how can we provide security?

1 Answers   Aspire,


What is unicode?

5 Answers  


Why isn’t there operator overloading?

0 Answers  


Are there structures in java?

0 Answers  


When we serialize an object does the serialization mechanism saves its references too?

0 Answers  


Categories