Top "Primitive-types" questions

Built-in types in any programming language that are defined in an axiomatic way and cannot be divided into other types in the language.

Why are Java wrapper classes immutable?

I know the usual reasons that apply to general immutable classes, viz can not change as a side effect easy …

java immutability mutable primitive-types
How can I convert a LazySeq of Characters to a String in Clojure?

Let's say I have a LazySeq of java.lang.Character like (\b \ \! \/ \b \ \% \1 \9 \/ \. \i \% \$ \i \space \^@) How can I convert …

map clojure types primitive-types coercion
Hash a double in Java

I was wondering how to hash a double in Java? I have hashed other primitive data and objects. I thought …

java object double hashcode primitive-types
Java Generics - <int> to <Integer>

In the way of learning Java Generics, I got stuck at a point. It was written "Java Generics works only …

java generics primitive-types type-erasure
Compare two arrays of primitives in Java?

I know about Arrays.deepEquals(Object[], Object[]) but this doesn't work for primitive types (due limitations of arrays and autoboxing, …

java arrays compare primitive-types
Why java has "String" type and not "string"?

Wrapper class are just fine and their purpose is also well understood. But why do we omit the primitive type ?

java string primitive-types reference-type
Most efficient Java primitive collections library

What is the best Java primitive collections library? (most memory and time efficient) I've found Trove and FastUtil to be …

java performance collections primitive-types
Java Vector or ArrayList for Primitives

Is there an expandable array class in the Java API equivalent to the Vector or ArrayList class that can be …

java vector arraylist primitive-types primitive
Change boolean Values?

I have a question about boolean values in Java. Let's say I have a program like this: boolean test = false; ... …

java boolean primitive-types
is there a way to check instanceof primitives variables java

We can know object reference is-a test by using instanceof operator. But is there any operator to check primitive types. …

java variables primitive-types