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.

Java - short and casting

I have the following code snippet. public static void main(String[] args) { short a = 4; short b = 5; short c = 5 + 4; short d = …

java casting primitive-types
Reflection on methods with a primitive numeric return type

I'm currently working on a small framework to collect metrics in an OSGi system. The core of it is an …

java reflection primitive-types
What is the "symbol" primitive data type in JavaScript

The new primitive type comes with ES6 which is Symbol type.The short definition says : A symbol is a unique …

javascript ecmascript-6 symbols primitive-types
Java primitive data type byte and class Byte

Background: I have an assignment where I'm going to pass information through sockets to a very limited extent. It can …

java byte primitive-types datainputstream dataoutputstream
Why java has a lot of duplicate methods?

I was playing with Java as I am planning to switch from C# to it for cross platform purposes. I …

java duplicates primitive-types
Why is string a reference type?

Why is string a reference type, even though it's normally primitive data type such as int, float, or double.

c# string primitive-types reference-type
Assigning one primitive variable to another vs a reference variable to another

I would like to understand how primitive and object reference variable behaves differently. I have used the below code from …

java primitive-types object-reference
Why do primitive types in C# have their own operations?

A few days ago, I decided to start learning C#. So, I got a book and started reading and practicing …

c# primitive-types