Important Questions for Mid Exams
Set 1:
What are the features of J2ME?J2ME technology provides tools to build an industrial-strength Java application designed to run on a small computing device with following features:
- Quick response time
- Compatibility with companion services
- Full-featured applications that can run on cell phones and Personal Digital Assistant with capabilities found on desktop and laptop computers
- Performing Floating Point Arithmetic
- Supporting finalize() method
- Handling Exceptions of All types
Explain J2ME Configuration.
J2ME must service many different kinds of small computing devices, including screen phones, digital set-top boxes used for cable television, cell phones, and Personal Digital Assistants. This issue has been resolved by introducing a two-fold approach of introducing configuration and profiles.
Configuration defines the Java run-time environment and core classes that operate on each device. It defines the Java Virtual Machine for a particular small computing device. There are two different configurations for J2ME:
- Connected Limited Device Configuration (CLDC) and
- Connected Device Configuration (CDC)
- CLDC devices usually have memory in the range of 160 KB and 512 KB and are battery powered.
- They also use an inconsistent, small- bandwidth network wireless connection and may not have a user interface.
- CLDC devices use the KJava Virtual Machine (KVM) implementation, which is a
- stripped-down version of the JVM.
- CLDC devices include pagers, personal digital assistants, cell phones, dedicated terminals, and handheld consumer devices with between 128KB and 512KB of memory.
- They use a 32-bit architecture processor.
- They have at least two megabytes (2 MB) of memory available, and implement a complete functional JVM
- CDC devices include digital set-top boxes, home appliances, navigation systems, point-of-sale terminals, and smart phones.
- A MIDlet is a J2ME application designed to operate on an MIDP (CDLC) small computing device.
- A MIDlet is defined with at least a single class that is derived from the javax .microedition.midlet.MIDlet abstract class.
- Developers commonly bundle related MIDlets into a MIDlet suite, which is contained within the same package and implemented simultaneously on a small computing device.
At the center of every MIDlet are the MIDP API classes used by the MIDlet to interact with the user and handle data management. The following tasks can be performed during the life cycle of a MIDlet:
- Display screens of data and prompt the user to respond with an appropriate command.
- The command object causes the MIDlet to execute one of three routines: perform a computation, make a network request, or display another screen.
- Write and read persistent data
- Store data in data types
- Receive data from and send data to a network
- Click here to find the answer
- The Screen class is a kind of Displayable Class. This is the base class of higher-level UI classes such as Form, TextBox, List and Alert
- The Screen class and its derived classes are referred to as high-level user interface components. Sub classes of Screen classes can be used to display information on the screen or collect information from a user (through UI such as forms, check boxes, radio buttons).
- Canvas class is used for creating low-level UI in a MIDlet. It can be used to display graphical images such as those used for games.
- Explain the evolution of J2ME.
- Briefly discuss the concept of Wireless Technology and Microwave Technology.
- Explain Radio Data Networks.
- Explain about the Personal Digital Assistance.
- In detail explain J2ME Architecture with a neat diagram.
- Explain some of the J2ME Best Practices.
- Explain the anatomy of a MIDlet suite.
- Write a MIDlet for selecting an option from a Choice Group object.
- Give a brief note on Animations.
- Write a MIDlet program for drawing a rectangle on a Canvas.
- Define Profile in J2ME. Name the profiles defined in J2ME for CLDC devices.
- Develop a MIDlet using List UI to display a list of Items in a List Box that can be selected by the user for input.
- What are the three layers of J2ME? Explain them briefly.
- List down the software required for developing MAD. Which language do you prefer for MAD? Justify.
- Name the packages provided by J2ME for MIDlet programming. Identify the three methods that every MIDlet must implement for its execution.
- Briefly discuss the basics of Radio Data Networks.
- Write notes on Personal Digital Assistance.
- What are the three types of UI available for MIDlet programming. Name the classes available for creating high-level UI.
- Develop a MIDlet for displaying a Help button by clicking which the user will be provided with some useful information in a TextBox on the screen.
- Explain the Command Class and CommandAction Listener. Illustrate event handling with an example.