Two Laptop Bag*
The moose likes Product and Other Certifications and the fly likes Many Questions related to JTWI & CLDC 1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Many Questions related to JTWI & CLDC 1.1" Watch "Many Questions related to JTWI & CLDC 1.1" New topic
Author

Many Questions related to JTWI & CLDC 1.1

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hi all,
I have some Qs related to JTWI & CLDC 1.1. Hope you can help me to clear these.

1) What is class file look up order? and do I have know about it other than knowing that you CAN'T change it in JTWI.

2) It is stated that the classes in the protected system packages can not be add, modified or override. The Q is, is it possible to have a class for example, 'Connector' in a user package? so that there are 2 classes with the same name in different packages.

3) Do I have to know the Byte Code TypeChecker and its mechanism?

4) Do I have to know the Runtime Verification step by step, I mean, first, memory is allocated for the types of the local variables and stack items and so on (from the spec)

5) In the JTWI specification (4.8) "Compliant devices must implement a mechanism for selecting a phone number from the device phone book when the user is editing a TextBox or TextField and the constraint of the TextBox or TextField is TextField.PHONENUMBER. This requirement is voided if the phone book is not accessible", could you please explain this, cause I thought it is not possible to access the phone book through a J2ME program.

Thanks in advance to you, hope to see the explainations soon.


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Ransika deSilva:
1) What is class file look up order? and do I have know about it other than knowing that you CAN'T change it in JTWI.

It's the order the class files will be loaded to the system. Since we will not have Custom Class loader in CLDC 1.1, we will not be able to change the order...

2)The Q is, is it possible to have a class for example, 'Connector' in a user package? so that there are 2 classes with the same name in different packages.

Unless you modified the original "Connector" class or extend it, it is possible that you include the javax.microedition.io package in your JAR... But who wants to do that, since it is already available in the device?

3) Do I have to know the Byte Code TypeChecker and its mechanism?

No, you don't need to know. It's out of exam topics...

4) Do I have to know the Runtime Verification step by step, I mean, first, memory is allocated for the types of the local variables and stack items and so on (from the spec)

Yes and No. You have to know how they work in overview... But you don't need to know the details of how memory are allocated for which local variables and so and so...

5) In the JTWI specification (4.8) "Compliant devices must implement a mechanism for selecting a phone number from the device phone book when the user is editing a TextBox or TextField and the constraint of the TextBox or TextField is TextField.PHONENUMBER. This requirement is voided if the phone book is not accessible", could you please explain this, cause I thought it is not possible to access the phone book through a J2ME program.

Actually, it is implementation-dependent. The device may or may not let you access the phone book, when you are using TextField.PHONENUMBER. If it lets you, when the user cursor is focus to that textfield, the entries from the phone book will automatically listed. Well, it depends on the implementation how the entries from phone book can be viewed... As a deveoper, you don't need to care about how to access the device phone book from your textfield... It may or may not be provided to the MIDlet, depending on the device policy...

Hope my explanation helps...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hi All,
Thanks a lot Ko ko for the answers, you answers, certainly helps a lot.
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
It's certainly my pleasure and happy to see taht there are people heading towards SCMAD exam....
 
Don't get me started about those stupid light bulbs.
 
subject: Many Questions related to JTWI & CLDC 1.1
 
Similar Threads
Objectives for the SCMAD exam are here!!
Ringtone : MMS/EMS/SMS, I am confused
Mock Exam Batch 1!!
Manning book
8kb for RMS ...