About 191,000 results
Open links in new tab
  1. What are Java's primitive types? - Stack Overflow

    Primitive types are predefined by the Java language and are named by a reserved keywords. Java supports 8 built-in data types and their basic behavior and supported operations cannot …

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

    51 These are the primitive types in Java: boolean byte short char int long float double All the other types are reference types: they reference objects. This is the first part of the Java tutorial …

  3. When to use wrapper class and primitive type - Stack Overflow

    Oct 15, 2009 · Primitive values in Java are not object. In order to manipulate these values as object the java.lang package provides a wrapper class for each of the primitive data type.

  4. Are Java primitives immutable? - Stack Overflow

    Aug 4, 2013 · You can't talk about immutability in case of primitive types,only the Wrapper Classes are immutable. Java uses copy_by_value not by reference. It makes no difference if …

  5. java - How to determine the primitive type of a primitive variable ...

    Sep 11, 2012 · Is there a "typeof" like function in Java that returns the type of a Primitive Data Types (PDT) variable or an expression of operands PDTs? instanceof seems to …

  6. What is the real difference between primitives and wrapper classes …

    Aug 7, 2020 · The real difference is that primitive types are not reference types. In Java type system, reference types have a common root, while primitive types do not: All reference types …

  7. Why do people still use primitive types in Java? - Stack Overflow

    Mar 5, 2011 · On the other hand, current Java language specification doesn’t allow usage of primitive types in the parameterized types (generics), in the Java collections or the Reflection …

  8. java - What is the difference between a primitive class and …

    Aug 2, 2017 · A primitive is a data type which is not an object. int, float, double, long, short, boolean and char are examples of primitive data types. You can't invoke methods on these …

  9. Should I use Primitive or Object for entity and models in Java?

    May 15, 2021 · As a beginner at Java, I am confused while choosing the variable types in entity or model classes. As mentioned on Java Primitives versus Objects, both of them have some pros …

  10. java - Create a List of primitive int? - Stack Overflow

    Aug 2, 2013 · Is there a way to create a list of primitive int or any primitives in java No you can't. You can only create List of reference types, like Integer, String, or your custom type. It seems I …