There is an error on line 8 

, 2.

There is an error on line 18

, 3.

There is an error on line 19


">
MCQs > IT & Programming > J2ME - Java Platform Micro Edition >

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. }

J2ME - Java Platform Micro Edition MCQs

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. }

Answer

Correct Answer:

There is an error on line 18

Explanation:

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

J2ME - Java Platform Micro Edition Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

J2ME - Java Platform Micro Edition Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it