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.

Is it valid to compare a double with an int in java?

Utilities.getDistance(uni, enemyuni) <= uni.getAttackRange() Utilities.getDistance returns double and getAttackRange returns int. The above code is part …

java comparison int double primitive-types
What's the difference between NSNumber and NSInteger?

What's the difference between NSNumber and NSInteger? Are there more primitives like these that I should know about? Is there …

iphone objective-c nsnumber primitive-types nsinteger
Why can Java Collections not directly store Primitives types?

Java collections only store Objects, not primitive types; however we can store the wrapper classes. Why this constraint?

java collections types primitive-types
Is String a primitive type?

I am curious about the string and primitive types. Article like this says string is primitive type. However second article …

c# .net vb.net string primitive-types
Scalar vs. primitive data type - are they the same thing?

In various articles I have read, there are sometimes references to primitive data types and sometimes there are references to …

programming-languages types terminology primitive-types scalar
Does C# have int8 and uint8?

I have four questions: Does C# have int8 If so, how can I convert a string to int8? Does C# …

c# primitive-types
Converting an array of objects to an array of their primitive types

If you have an array of Java objects which have a primitive type (for example Byte, Integer, Char, etc). Is …

java arrays primitive-types
Is it possible to write swap method in Java?

Here is the question: write a method that swaps two variables. These two variables should be primitives. It doesn't need …

java swap primitive-types
How to determine the primitive type of a primitive variable?

Is there a "typeof" like function in Java that returns the type of a primitive data type (PDT) variable or …

java primitive-types typeof
Can I pass a primitive type by reference in Java?

I would like to call a method which could potentially take on different versions, i.e. the same method for …

java pass-by-reference overloading primitive-types