Enter code
 TestCV.com on Google+

Java ME

The test checks the knowledge and skills in Java ME - Java Platform, Micro Edition (ME, J2ME).

Java Platform, Micro Edition or Java ME is a Java platform designed for embedded systems (mobile devices are one kind of such systems) . Target devices range from industrial controls to mobile phones (especially feature phones) and set-top boxes. Java ME was formerly known as Java 2 Platform, Micro Edition (J2ME). A large variety of API (Application Programming Interface) in the Java ME gives for developers high flexibility in creating software for various hardware configurations. Java ME environment has also its own virtual machines.

The following example may arise in the test:

What will be the result of executing the above code? Assume that the server.com is a valid address.
public void m() {
              HttpConnection c = (HttpConnection)Connector.open("http://server.com");
               InputStream is = c.openInputStream();
               byte[] buf = new byte[10];
               int l = is.read(buf, 0, 10);
               System.out.print(l + ", " + buf[9]);

a) The code will not compile.
b) The program will throw the NullPointerException.
c) The proram will throw the ArrayIndexOutOfBoundsExcetpion.
d) The program will output in the console the number of read byte (at most 10). The code of the 10th byte will be displayed, if it exists.
e) The program will output in the console the whole response length and the code of the 10th byte, if it exists.

section: "Communication", intermediate

Only now you can try it totally for free. Promotion is valid until further notice. Do not miss it out!

Questions to answer: 45
Time to test: 40 min
Test price: 0.00 EUR
  • Basic Java Language Issues (6)
    Basic Java topics not included in other sections, e.g. operators, packages, garbage collector, command line handling, JAR archives.
  • Flow Control in Java Applications (7)
    Loops: while, do..while, for, for-each. Handling exceptions using the try..catch..finally clause. The most important exception and error classes. Assertions.
  • Object-Oriented Techniques (7)
    Classes, interfaces and enums declarations. Inner classes. Static vs. nonstatic elements. Constructors and class inheritance.
  • The practical utilization of the Java ME (3)
    Different questions about practical solutions and problem solving.
  • Graphical User Interface and Controls (9)
    Basic controls (e.g. textfields, commands, images, lists). Displayable objects. Event listeners for above objects.
  • Communication (3)
    Communication interfaces - Connection, HttpConnection, CommConnection, SocketConnection and others. The Connector class. The structure of the URL addresses used for creating connections.
  • RMS (3)
    Storing data using the Record Management System - creating datastores, inserting, editing and removing data in the RMS.
  • Additional API (7)
    Location API, Multimedia API, Game API, Bluetooth API (OBEX), FileSystem API