Answer:
Total number of characters in "short text" is 10.
Total number of distinct characters is 8.
Explanation:
List of characters in "short text":
s,h,o,r,t, ,t,e,x,t - 10
Set of distinct characters is:
s,h,o,r,t, ,e,x - 8
The length can be determined programmatically in Java using String.length() api.To determine distinct characters, individual characters can be added to a Set and then the set size can be computed.