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
Win a copy of
Getting started with Java on the Raspberry Pi
this week in the
Raspberry Pi
forum!
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
Ron McLeod
Paul Clapham
Tim Cooke
Jeanne Boyarsky
Sheriffs:
Rob Spoor
Devaka Cooray
Liutauras Vilda
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Piet Souris
Forum:
Programmer Certification (OCPJP)
compiler error
arivu mathi
Ranch Hand
Posts: 38
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
can u plz explain why there is a compiler error?
public class Test12{
public static void main(
String
a[]){
byte b = 100;
Byte b1= new Byte(100);
Byte b2 = new Byte(b);
System.out.println(b1 == b2);
System.out.println(b1.equals(b2));
}
}
What is output?
wise owen
Ranch Hand
Posts: 2023
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
compile time error at Byte b1= new Byte(100);
this one may explain to you.
arivu mathi
Ranch Hand
Posts: 38
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
thanks a lot wise...
It's hard to fight evil. The little things, like a nice sandwich, really helps. Right tiny ad?
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Integral types
static variable vs final variable!
wrapper object
casting
Byte Data Type
More...