aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird - 'Your data access class must be called Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird - Watch "URLyBird - New topic
Author

URLyBird - 'Your data access class must be called "Data.java"'

Catalin Mihalache
Greenhorn

Joined: Oct 16, 2004
Posts: 16
Hi everybody,

My assignment is URLyBird 1.2.3

There is a very strange request:

"Your data access class must be called 'Data.java', must be in a package called "suncertify.db", and must implement the following interface" (DBAccess)

The very important thing is this request is a MUST. But having a class named 'Data.java' means 3 possibilities:

a)a wrong request from SUN - but this is a MUST so I cannot suppose this is a SUN's mistake.

b) I can define class "java" in package suncertify.db.Data - this means to not use Java Code Conventions.

c)more like, having a class named Data in package 'suncertify.db' and this class has a static inner class named 'java'

The difference between b) and c) is that the last one really defined that class in the specified package 'suncertify.db'.

Bot b) and c) means loosing some credits. But to not defined class Data.java (in a file named Data.java, of course) means failing the assignment.

Of course, I could send an email to who2contact@sun.com to ask about it but is possible that I do not receive an answer.

Please, comment this.

Regards,
Catalin Mihalache

SCJP, SCWCD, SCDJWS


Regards,<br />Catalin Mihalache<br /> <br />SCJP 1.5<br />SCWCD 1.4<br />SCDJWS 1.4
Kah Tang
Ranch Hand

Joined: Sep 10, 2007
Posts: 58
What they mean is that you need a class named Data in a package called suncertify.db and have the source file called Data.java. It wouldn't really make sense to have a class called java.
Catalin Mihalache
Greenhorn

Joined: Oct 16, 2004
Posts: 16
Hi Kah Tang,

Logically, you are right - there is meaning in naming a class 'java'. But SCJD assignment request is very clear: a class named 'Data.java' in package suncertify.db. There is not class named 'Data' but 'Data.java'. And I remember that not respecting a MUST means automatic failure.

My solution is something like :

package suncertify.db;

public class Data {
public static class java {
}
}

I know, is stupid, but it respects a MUST from SCJD assignment.

Regards,
Catalin Mihalache
SCJP, SCWCD, SCDJWS
Jethro Borsje
Ranch Hand

Joined: Jul 22, 2008
Posts: 100
Seriously, just make a class which is called "Data" inside a package called "suncertify.db" and you'll be fine.


SCJP, SCJD
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2246



Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLyBird - 'Your data access class must be called "Data.java"'
 
Similar Threads
NX: URLyBird v1.2.3 design question
NX: UrlyBird "suncertify" package?
URLyBird 1.2.1 Passed!
DB Interface (URLyBird 1.1.2)
Doubt about recNo in URLyBird 1.1.2