A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
problem with the same data type and class
Joined: Jul 13, 2008
Jan 29, 2009 06:52:11
(data type and class) of
have the same name?no other data type like this in java?
Joined: Aug 03, 2008
Jan 29, 2009 07:10:54
String is not a datatype. It's just a class. It just have some special treatment by the compiler because of which you can write this
String s = "Hello World";
The compiler internally converts this into
String s = new String("Hello World");
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
subject: problem with the same data type and class
Doubt in using bean
Same class name and data type.......
Array questions about Object
Precision loss in String to Float and double to float
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013