+ 1

What datatype is (23xyz)?

Can we have alpha numeric datatype in java?

18th Nov 2018, 5:52 AM
Talha Shahzad
Talha Shahzad - avatar
4 Answers
+ 2
No, number can also represent as character for example 0 is 48 in ascii So its still valid as string String s="124xyz";
18th Nov 2018, 6:07 AM
Taste
Taste - avatar
+ 1
You can use String
18th Nov 2018, 6:03 AM
Taste
Taste - avatar
+ 1
But strings only have alphabetical values?
18th Nov 2018, 6:04 AM
Talha Shahzad
Talha Shahzad - avatar
+ 1
Thanks for the information 😊
18th Nov 2018, 6:09 AM
Talha Shahzad
Talha Shahzad - avatar