Our experts have gathered these J2ME - Java Platform Micro Edition MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of J2ME - Java Platform Micro Edition by answering these 70+ multiple-choice questions.
Get started now by scrolling down!
A. Display toolkit and user input methods
B. Messaging
C. Security and networking over wireless network connections
D. Persistent data storage
E. All of the above are addressed
What will happen on attempting to compile and run the following code?
public class ERMidlet extends MIDlet implements CommandListener, Runnable
{
private Display mDisplay;
private Form myForm;
private Command exitCommand;
private StringItem myString;
ERMidlet()
{
myForm = new Form("Expert Rating Exam");
exitCommand = new Command("Exit",Command.EXIT, 0);
myString = new StringItem("15");
myForm.append(myString);
myForm.addCommand(exitCommand);
myForm.setCommandListener(this);
}
public void startApp()
{
mDisplay = Display.getDisplay(this);
mDisplay.setCurrent(myForm);
}
public void commandAction (Command c, Displayable s)
{
destroyApp(false);
notifyDestroyed();
}
public void run()
{
}
public void pauseApp()
{
}
public void destroyApp(boolean unconditional)
{
}
}
A.
It will display 15 on the devices screen
B.
The code will not compile
C.
The code will compile but will throw a runtime exception
D.
It will not display anything
A. They have 128KB to 512KB of total memory
B. They support the complete JVM specification
C. They are often battery powered
D. They are network enabled
A. Alert.FOREVER
B. AlertType.FOREVER
C. Alert.MODAL
D. AlertType.ALWAY
A. MIDlet-Configuration
B. Microedition-Configuration
C. MIDP-Configuration
D. Configuration
A. True
B. False
A. Weak references
B. Float calculations
C. Threads
D. Finalization
A. MIDP
B. Foundation
C. Personal
D. Vista
A. MIDP
B. Foundation
C. Personal
A. They have a minimum of 512KB ROM
B. They support the complete JVM specification
C. They are network enabled
D. They have a minimum of 512KB RAM
A. CLDC HotSpot Implementation
B. Java HotSpot Client
C. Java HotSpot Server
A. CDC HotSpot Implementation
B. CLDC HotSpot Implementation
C. Java HotSpot Client
A. 5
B. 10
C. 16
D. 32
The following are the two statements related to Java Community Process:
Statement X: A Java specification begins life as a Java Community Process
Statement Y: The specifications for Java standard, enterprise and micro platforms are developed under the direction of JCP
Which of the following options is correct?
A.
Statement X is incorrect and Statement Y is correct
B.
Statement X is correct and Statement Y is incorrect
C.
Both Statements X,Y are correct
D.
Both Statements X,Y are incorrect
Which of the following is designed for resource-constrained devices like consumer products and embedded devices?
A.
CDC HotSpot Implementation
B.
CLDC HotSpot Implementation
C.
Java HotSpot Client
D.
Java HotSpot Server
A. TCK is applicable in CLDC only
B. TCKs are developed and licensed by the JSR specification lead
C. TCK is a test suite that verifies whether an implementation is compliant with a given JSR
A. Microedition-Permissions
B. MIDP-Permissions
C. Midlet-Permissions
D. MIDlet-Configuration
A. READ
B. WRITE
C. READ_WRITE
D. Any of the above
A. Content connection and stream connection
B. Stream connection and content connection
C. Data Notifier and stream connection
A. Java class files have been properly verified and guaranteed to be valid Java applications
B. Access to native functions is allowed
C. Only a limited, predefined set of Java APIs are available to the application programmer
D. The programmer can override the standard class loading mechanism or the system classes of the VM
E. The programmer can download new libraries containing the native code
A. WMA 1.1
B. CLDC 1.1
C. MIDP 2.0
D. MMAPI 1.1
State whether true or false:
A MIDlet can retrieve its environment properties.
A.
True
B.
False
A. Connected Device Configuration
B. Connected Restricted Configuration
C. Connected Limited Device Configuration
D. Common Legitimate Device Configuration
A. connect(url)
B. Connector.open(url)
C. Network.open(url)
D. conopen(url)
A. True
B. False
A. It is defined by the Java Community Process
B. It is not subjected to compatibility tests
C. It specifies the minimum Java libraries required for a particular set of devices
D. It specifies the minimum virtual machine capabilities required for a particular set of devices
A. 16 Bit KHz color PCM (video)
B. 16 Bit KHz mono PCM (audio)
C. 8 Bit KHz mono PCM (audio)
D. 8 Bit KHz color PCM (video)
A. Vector
B. Stack
C. Hashtable
D. ArrayList
E. Enumeration
A. microedition.platform
B. microedition.profiles
C. microedition.configuration
D. microedition.reflection
A. AUTHMODE_ANY
B. AUTHMODE_SHARED
C. AUTHMODE_PUBLIC
D. A RecordStore cannot be shared between multiple MIDlets
A. The J2SE security model is too big to be implemented in J2ME
B. It defines low-level virtual machine security
C. It defines high-level virtual machine security
D. It defines application-level security
A. JPEG and GIF
B. PNG
C. TIFF and PNG
D. PNG and JPEG
A. JCP
B. Configuration
C. Profiles
D. Optional packages
A. A call to RecordStore.deleteRecord will allow the recordID to be reused
B. When updating a record, another user can update the same record at the same time
C. All RecordStore operations are atomic, synchronized, and serialized
A. 70 characters
B. 160 characters
C. Whether it is 160 or 70 characters depends on the encoding
What would you infer from the following code?
1.MessageConnection conn;
2.
3. public void startApp()
4. {
5.
6. try
7. {
8. conn = (MessageConnection)Connector.open("cbs://:3382");
9. }
10. catch(Exception e)
11. {
12. //Some exception handling
13. }
14. }
15.
16. public void run()
17. {
18. Message msg = conn.receive();
19. conn.send(msg);
20. }
A.
There is an error on line 8
B.
There is an error on line 18
C.
There is an error on line 19
A. 32KB
B. 128KB
C. 64KB
D. 16KB
A. 32KB
B. 128KB
C. 64KB
D. 5KB
A. PDAs and Communicators
B. Phones and Pagers
C. Embedded Devices
A. In J2SE Networking classes, the total size was greater than 200Mb
B. J2SE Networking classes assume TCP/IP is available
C. Both of the above
A. text/vnd.sun.j2me.app-configuration
B. text/vnd.sun.j2me.app-description
C. text/vnd.sun.j2me.domain-configuration
D. text/vnd.sun.j2me.domain-description
A. It enables dynamic downloading of applications and content to small devices
B. It is a minimum-footprint application development platform for resource constrained connected devices
C. It enables third-party software development for small devices
D. It is not standardized through the Java Community Process
A. Personal
B. Foundation
C. RMI
D. All of the above
A. Midlet-Push-
B. Midlet-enable-
C. Midlet-Push-
D. Midlet-enable-
A. CDC-->CLDC
B. CLDC-->CDC
C. MIDP-->CDC
A. Xlets must have GUI, whereas standalone application may have or may not have GUI
B. It is very similar to the applet application programming model
C. It is possible only to run single Xlet application
D. The lifecycle of Xlet is init, start, stop and destroy, whereas for stand-alone application there is main and exit only
A. Application installation and life-cycle management
B. Event Handling
C. Database Support
D. High-level Application Model
E. User Interface Support
F. All of the above
A. CDC HotSpot Implementation
B. CLDC HotSpot Implementation
C. Java HotSpot Client
D. Java HotSpot Server
A. 16
B. 23
C. 8
D. 30
A. 18
B. 13
C. 22
D. 30