Ask Question

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

+2
Answers (1)
  1. 8 February, 02:42
    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?
Find 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 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