Ask Question
23 June, 16:32

The datatype returned by the JOptionPane. showInputDialog method is

String.

int.

double.

specified by the user in the method call.

+2
Answers (1)
  1. 23 June, 20:20
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers