Ask Question

The datatype returned by the JOptionPane. showInputDialog method is

String.

int.

double.

specified by the user in the method call.

+4
Answers (1)
  1. 25 November, 00:43
    0
    String

    Explanation:

    JOptionPane is a convenience swing class which displays different kinds of dialog boxes. Input dialog in particular represents prompts the user for some input. There are several polymorphic forms for this function with the most basic form being:

    public static String showInputDialog (Object prompt)

    As we can see the return type for this function is of type String which captures the value entered by the user on the dialog box.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “The datatype returned by the JOptionPane. showInputDialog method is String. int. double. specified by the user in the method call. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers