aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "compiler error" Watch "compiler error" New topic
Author

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);
System.out.println(b1.equals(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
wrapper object
Integral types
casting
Byte Data Type
static variable vs final variable!