Java BasicsGeneral beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
hi........i want to extend the String class........how can i do this?........plz come up with some solutions
April 7th, 2008, 03:46 AM
jomet
Guest
Posts: n/a
A final class may not be extended, neither may a final method be overridden.
java.lang.String
is a final class
public final class String
what is your requirement???
jomet.
---------------------------------------------
Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
well, i want to create a class MyString and extend it from the String class. In the main method,i want to create a new object of the class i.e., MyString and call any three non-static methods of String class using object of MyString class.