File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
I agree. Here's the link:
subject: problem with the same data type and class
Array questions about Object
Same class name and data type.......
Doubt in using bean
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-2014