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

How can we achieve thread safety in java?

0 Answers  


What happens if constructor is private?

0 Answers  


What is nextline method in java?

0 Answers  


Can we extend singleton class?

0 Answers  


How will you print number in reverse (descending) order in BST.

0 Answers   GrapeCity,






How many bits is a string?

0 Answers  


What happens if an exception is throws from an object's destructor?

0 Answers   Amazon,


What are green threads in java?

0 Answers  


what is Portal(web based online portal)?

2 Answers   AIG,


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;

17 Answers   Honeywell,


Categories