Results 1 to 3 of 3
- 03-12-2012, 10:20 AM #1
Member
- Join Date
- Jan 2012
- Posts
- 14
- Rep Power
- 0
How to create an object of a Class whose default constroctor is deprecated
Hello, correct me if i am wrong i have a class there it has a couple of constructors
like default, passing one string argument, passing string argument and an object - among these three constructors i see that the first two constructors are deprecated, now i have a class where i have to create an object of that class by using the constructor passing String argument. How can it be possible ?
any help is appreciated
Thanks :)
- 03-12-2012, 11:21 AM #2
Re: How to create an object of a Class whose default constroctor is deprecated
Are you talking about some JDK class or a proprietary, third-party class?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 03-12-2012, 11:30 AM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Similar Threads
-
What is the Default value for a String object?
By mkarthik90 in forum New To JavaReplies: 4Last Post: 02-15-2012, 11:19 AM -
create object from a class
By HearT.Hunt3r in forum Advanced JavaReplies: 1Last Post: 10-28-2011, 02:46 AM -
Drawing an object in my canvas class, the object is created in a separate class
By Hornfreak in forum AWT / SwingReplies: 3Last Post: 05-02-2011, 04:37 AM -
Create object of unknown class, based on existing object
By Zack in forum New To JavaReplies: 2Last Post: 06-22-2010, 04:29 AM -
How to create object dynamically with class name known in string format
By ranu_gokhe in forum Advanced JavaReplies: 1Last Post: 04-09-2008, 02:15 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks