aspose file tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: Data Constructors Signature Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "B&S: Data Constructors Signature" Watch "B&S: Data Constructors Signature" New topic
Author

B&S: Data Constructors Signature

Laura Pecoraro
Ranch Hand

Joined: Mar 31, 2009
Posts: 45
Hi all...

I have a doubt about my data constructors signature... in the Sun specification don't say about this constructors, and then, I implements this:


This is a problem for automatic test???

Thanks Laura

Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4389

My data-constructor is



So if your constructor is a problem, then my constructor is too. So i don't think you have to worry about passing a String-argument to your constructor. In my assignment nothing is said about Data having a no-arg public constructor (like the must-requirement for RecordNotFoundException), just that Data must implement sun's interface. So don't worry at all!


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2216

No need to worry, guys. My constructor is just like Roel's... Laura, I am pretty sure I have seen other people doing just like you did, and were successful.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Laura Pecoraro
Ranch Hand

Joined: Mar 31, 2009
Posts: 45
Thanks friends... to my great relief

Laura
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: B&S: Data Constructors Signature
 
Similar Threads
B&S : Couple of questions
FBN: Data Client Constructor
Final check before upload
Multiple constructors with same signature
Ernest does it again!