jQuery in Action, 2nd edition*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes compiler error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "compiler error" Watch "compiler error" New topic

compiler error

arivu mathi
Ranch Hand

Joined: Jun 26, 2006
Posts: 38
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);
What is output?
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
compile time error at Byte b1= new Byte(100);
this one may explain to you.
arivu mathi
Ranch Hand

Joined: Jun 26, 2006
Posts: 38
thanks a lot wise...
I agree. Here's the link: http://aspose.com/file-tools
subject: compiler error
Similar Threads
static variable vs final variable!
Byte Data Type
Integral types
wrapper object