Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
Wrapper cast problem
gaurav gupta sitm
Greenhorn
Posts: 22
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Short i21 = 1627; //compiler found int but why it compiles in case of narrower Character i22 = 127; //as above
Long l1=1323; //compiler found int but why it is not compiles in case of wider
Sunny Bhandari
Ranch Hand
Posts: 448
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Gaurav,
You can memorize the rule that widening and autoboxing don't go in parallel.
You can see the following statement for one more example for what I just said:
Double l1=1323.12f;
Java Experience
gaurav gupta sitm
Greenhorn
Posts: 22
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks Sunny ....
Sunny Bhandari
Ranch Hand
Posts: 448
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You are welcome..
Java Experience
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
== operator
LABEL1: System.out.print("HELP PLS");
Java Primitive Literals
byte and char literals
Why Byte boxing doesn't work here
More...