Did a Java tech interview today

Garet Jax

Diamond Member
Feb 21, 2000
6,369
0
71
Asked him to name the 8 primitive data types:

he named:

byte
int
double
big int
big double
string
boolean
char

:confused:
 

Garet Jax

Diamond Member
Feb 21, 2000
6,369
0
71
It's not that he didn't know all 8, as much as it's that he said String was one of them.

 

BigJ

Lifer
Nov 18, 2001
21,330
1
81
Originally posted by: Garet Jax
It's not that he didn't know all 8, as much as it's that he said String was one of them.

Very, especially since he did say char.

What's also suprising is that he didn't say float. I could see forgetting about short and long, but not float.
 

Garet Jax

Diamond Member
Feb 21, 2000
6,369
0
71
Originally posted by: BigJ
Originally posted by: Garet Jax
It's not that he didn't know all 8, as much as it's that he said String was one of them.

Very, especially since he did say char.

What's also suprising is that he didn't say float. I could see forgetting about short and long, but not float.

he actually said character, but I game him the benefit of the doubt :)
 

RichUK

Lifer
Feb 14, 2005
10,341
678
126
What is a long, short and double? I understand the others from college when I was studying programming in Turbo Pascal.
 

RichUK

Lifer
Feb 14, 2005
10,341
678
126
Ahh, lol, I probably covered this whilst studying Pascal but I can?t remember it. It was a long time ago.

Anyway, I understand now, thanks. :)
 

eLiu

Diamond Member
Jun 4, 2001
6,407
1
0
I'm more surprised by the big int & big float than the others... I mean strings are primitive in some languages. But if you have a need for "arbitrary" precision numbers, it seems like you really ought to know something about them... like how you would have to include the BigInteger and/or BigDecimal classes...
 

Garet Jax

Diamond Member
Feb 21, 2000
6,369
0
71
Originally posted by: RichUK
What is a long, short and double? I understand the others from college when I was studying programming in Turbo Pascal.

byte - 8 bit integral
short - 16 bit integral
int - 32 bit integral
long - 64 bit integral
float - 32 bit decimal
double - 64 bit decimal
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
I'm just curious, what other questions did you ask? What were you trying to learn from the questions?
 

RichUK

Lifer
Feb 14, 2005
10,341
678
126
Originally posted by: Garet Jax
Originally posted by: RichUK
What is a long, short and double? I understand the others from college when I was studying programming in Turbo Pascal.

byte - 8 bit integral
short - 16 bit integral
int - 32 bit integral
long - 64 bit integral
float - 32 bit decimal
double - 64 bit decimal

That?s a good break down. :)