Top "Types" questions

Types, and type systems, are used to enforce levels of abstraction in programs.

How do I check if a type is a subtype OR the type of an object?

To check if a type is a subclass of another type in C#, it's easy: typeof (SubClass).IsSubclassOf(typeof (BaseClass)); // …

c# reflection types subclass
What does `unsigned` in MySQL mean and when to use it?

What does "unsigned" mean in MySQL and when should I use it?

mysql types
BOOLEAN or TINYINT confusion

I was designing a database for a site where I need to use a boolean datetype to store only 2 states, …

mysql types boolean tinyint
mysql datatype for telephone number and address

I want to input telephone number in a form, including country code, extension create table if not exists employee( ` country_…

mysql types phone-number street-address
What's the difference between primitive and reference types?

This is a past exam question and I was wondering what a primitive type and reference type are first off? …

java types reference primitive
Why SQL Server throws Arithmetic overflow error converting int to data type numeric?

I have an error being thrown by SQL Server Management Studio when running this code: declare @percentage numeric(3,2) set @percentage = …

sql-server variables types numeric
Comparing Class Types in Java

I want to compare the class type in Java. I thought I could do this: class MyObject_1 {} class MyObject_2 extends …

java types compare
What data type to use for money in Java?

What data type should you use for money in Java?

java types currency
Groovy / grails how to determine a data type?

What is the best way to determine the data type in groovy? I'd like to format the output differently if …

groovy types
make arrayList.toArray() return more specific types

So, normally ArrayList.toArray() would return a type of Object[]....but supposed it's an Arraylist of object Custom, how do …

java arrays object types arraylist