Ask your own question, for FREE!
Computer Science 12 Online
OpenStudy (lo):

heyyy~~~ in the java program, if i wanna output a number, i'd use double. but what should i use if i wanna output a word? ex : double loan = console.nextDouble

OpenStudy (rsmith6559):

A String object.

OpenStudy (anonymous):

String word = "Hello World!"; System.out.println(word);

OpenStudy (anonymous):

If you mean a data type of lengh word (32bits) you would use the java long data type. long - native 32bit datatype Long - Wrapper class

OpenStudy (anonymous):

In u can not store words as primitive data variables. All the words can be stored as objects. these objects are String objects. This will not have any memory. Your words or Strings will be stored in memory. this is like dynamic memory allocation. Three is no fixed size.

OpenStudy (anonymous):

@snaef999 ints are 32 bits. longs are 64 bits.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!