Multiple choice technology programming languages

What is the difference between a TextArea and a TextField?

  1. A TextArea can handle multiple lines of text

  2. A textarea can be used for output

  3. TextArea is not a class

  4. TextAreas are used for displaying graphics

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A TextArea is designed to handle and display multiple lines of text, whereas a TextField is limited to a single line of input. Both are valid classes in Java's AWT/Swing libraries and can be used for input or output.