Home > MCQs > IT & Programming > Java ME (Java Platform, Micro Edition) MCQs

Java ME (Java Platform, Micro Edition) MCQ

Java ME (Java Platform, Micro Edition) Quick Quiz

Question 1 of 10
  • 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)
            {
            }

    Answer & Explanation

    Correct Answer: It will display 15 on the devices screen

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following could be the reasons for the introduction of the Generic Connection framework?

    Answer & Explanation

    Correct Answer: Both of the above 

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following image formats is supported by JTWI 1.0?

    Answer & Explanation

    Correct Answer: PNG

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following is used to specify the Push enable MIDlets?

    Answer & Explanation

    Correct Answer: Midlet-Push-<n>

    Note: This Question is unanswered, help us to find answer for this one

  • According to JTWI, what is the recommended size for a heap?

    Answer & Explanation

    Correct Answer: 256KB

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following authmodes can be used to share a RecordStore between multiple MIDlets?

    Answer & Explanation

    Correct Answer: AUTHMODE_ANY

    Note: This Question is unanswered, help us to find answer for this one

  • What would be the values for boxes 1 and 2 respectively in the given Generic Framework figure?

    Answer & Explanation

    Correct Answer: Stream connection and content connection

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following statements is correct regarding RecordStores?

    Answer & Explanation

    Correct Answer: All RecordStore operations are atomic, synchronized, and serialized

    Note: This Question is unanswered, help us to find answer for this one

  • According to JTWI, what is the standard size for a JAD file?

    Answer & Explanation

    Correct Answer: 5KB

    Note: This Question is unanswered, help us to find answer for this one

  • MIDP specification requires support for which of the following auth schemes?

    Answer & Explanation

    Correct Answer: Basic

    Note: This Question is unanswered, help us to find answer for this one

  • Java ME (Java Platform, Micro Edition) Quick Quiz

    battery

    Poor Results!

    You need a lot of improvement.

    Just don't give up!

    Correct Answers: 0/10

    Start Practicing with our MCQs given below.