Ask Question
4 June, 23:31

Find the largest and smallest byte, short, int, long, float, and double. Which of these data types requires the least amount of memory?

+3
Answers (1)
  1. 4 June, 23:48
    0
    double, long, float, short, byte

    Explanation:

    The given data types are built-in types. According to java, the following holds right to justify the order.

    Double:

    This occupies 64 bits It can hold decimal values Example: "1.23456e300d, - 1.23456e-300d, 1e1d"

    Float:

    It occupies 32 bits Holds decimal values Example: "1.23e100f, - 1.23e-100f,.3f, 3.14F"

    Long:

    It occupies 64 bits Example: "-2L, - 1L, 0L, 1L, 2L"

    Short:

    It occupies 16 bits Stores twos complement integer

    Byte:

    It occupies 8 bits Stores twos complement integer
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Find the largest and smallest byte, short, int, long, float, and double. Which of these data types requires the least amount of memory? ...” 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