• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Did a Java tech interview today

Garet Jax

Diamond Member
Asked him to name the 8 primitive data types:

he named:

byte
int
double
big int
big double
string
boolean
char

😕
 
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.
 
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 🙂
 
What is a long, short and double? I understand the others from college when I was studying programming in Turbo Pascal.
 
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. 🙂
 
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...
 
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
 
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. 🙂
 
Back
Top