Which is used to retrieve the version of MIDP that a device has implemented
-
System.getProperty("microedition.profiles")
-
System.geApptProperty("microedition.profiles")
-
System.getProperty("microedition.platform")
-
System.getAppProperty("microedition.platform")
System.getProperty("microedition.profiles") returns the MIDP (and other J2ME profile) version information implemented on the device. The 'microedition.profiles' property specifically retrieves profile version data, while 'microedition.platform' would return platform/configuration information.
System.getProperty("microedition.profiles") is correct. In J2ME (Java 2 Micro Edition), this system property returns a space-separated list of the profiles implemented by the device (e.g., 'MIDP-2.0'), which is how an application determines the MIDP version at runtime. 'getAppProperty' is a different API used to read attributes from the JAD/manifest file, not system-level implementation info, and 'microedition.platform' returns platform/hardware identification, not the MIDP profile version — so those options don't answer the question asked.