About 50 results
Open links in new tab
  1. java - How to calculate the range of primitive data types ... - Stack ...

    The byte data type can be useful for saving memory in large arrays, where the memory savings actually matters. They can also be used in place of int where their limits help to clarify your …

  2. java - What's the difference between primitive and reference types ...

    Reference or non-primitive data types have all the same size. and reference types can be used to call methods to perform certain operations. when declaring the reference type need to allocate …

  3. java - Method accepting two different types as parameter - Stack …

    May 28, 2012 · I am writing a method that should accept as its parameter an object of one of two types which do not share a parent type other than Object. For example, the types are Dreams …

  4. Java Array with multiple data types - Stack Overflow

    What can I use to store multiple different types of data, Int/String/etc.? I come from a PHP background where I can store different types of data into an array, but I don't know how to do …

  5. java - Hashmap holding different data types as values for instance ...

    Jan 30, 2013 · I need to create a hashmap with key as integer and it should hold multiple values of different data types. For example if the key is msg id and the values are message of type …

  6. What are the default values for data types in Java? [duplicate]

    May 24, 2017 · I am very new to Java having always issue with data types. So what are the default values for all data types in Java?

  7. Java, easiest way to store mixed-data types in a multidimensional …

    Apr 27, 2011 · Ive got a file with some String and ints I wish to store in a 2D 'array'. What is the best way of doing this? I havent done Java for a while and i've been using VBA (where you …

  8. types - Java Datatypes - Hacker Rank - Stack Overflow

    Oct 1, 2020 · Java Datatypes - Hacker Rank Asked 5 years, 3 months ago Modified 5 years, 3 months ago Viewed 2k times

  9. What are Java's primitive types? - Stack Overflow

    What are primitive type in Java? What is the difference between a primitive type and a reference type? How many primitive types does Java have, and what are they?

  10. Is there a way to output the java data type to the console?

    May 3, 2012 · The data look like Strings when printed to the console (e.g., it's a line of text, like Johnson, John or Chicago Region), but my code is erroring out with various index out of range …