Sunteți pe pagina 1din 2

Q.1) Difference between : (a) CLDC 1.0 & CLDC 1.1 CLDC 1.0 1. CLCD 1.

0 does not have support for floating points. 2. Doesn't support weak references

CLDC 1.1 1. CLDC 1.1 adds two class Float and Double for floating point support. 2. Weak reference classes that are present in j2se lang package are added for supporting weak references. 3. NoClassDefFoundError is added.

3. NoClassDefFoundError class is not present. 4. Methods Thread.interrupt() and Thread.getName() are not available. 5. Any methods related to conversion of string to double are absent in CLDC1.0 6. equalsIgnoreCase() is absent in CLDC 1.0. 7. All these are not supported in CLDC 1.0 when MIDP 2.0 is used.

4. Thread.interrupt() and Thread.getName() are added.

5. methods related to conversion of string to double are present in CLDC 1.1 . 6. equalsIgnoreCase() is present in CLDC 1.1. 7. CLDC1.1 supports location API(JSR 179), Mobile Internationalization API( JSR 238), Mobile 3D graphics( JSR 184), Payment API( JSR 229), Java Bindings for OpenGL( JSR 239)

8. Memory is low in CLDC 1.0 comparing to 8. Memory is high in CLDC 1.1 comparing CLDC 1.1 to CLDC 1.0 9. insert(),append() methods is absent in String Buffer in CLDC 1.0. 10. . ValueOf()--->which provide conversions b/w floating point types and strings is absent in CLDC1.0 9. insert(),append() methods is present in String Buffer in CLDC 1.1 10. ValueOf()--->which provide conversions b/w floating point types and strings is present in CLDC1.1

(c)TextBox & TextField TextBox 1. The TextBox class is a Screen that allows the user to enter and edit text. TextField 1. A TextField is an editable text component that may be placed into a Form. 2. TextBox is derived from Screen class and 2. TextField is derived from Item class that therefore occupies the entire display. occupies space on a Form and usually it appears as a single-line input field. 3.TextBox class uses a CommandListener 3.Modifications to a TextField are reported and does not have a way to report changes to the ItemStateListener associated with in its content to a listener. the Form on which the TextField is displayed. 4. An instance of the Form class cannot 4.An instance of TextField class must be contain an instance of the TextBox class. contained within an instance of the Form class. 5. The syntax for creating a new TextBox 5. A new textfield object can be created as object is as follows : follows: TextBox textbox = new TextBox(String title, TextField textfield = new TextField(String String text, int maxsize, int constraints); title, " ", 256, TextField.ANY); 6. A TextBox has a maximum size, which is 6. TextField does not limit the amount of the maximum number of characters that characters that can be entered in the can be stored in the object at any time textfield.

S-ar putea să vă placă și