File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Confusion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Confusion" Watch "Confusion" New topic



Joined: Mar 05, 2002
Posts: 1
Hello Friends,
If anybody have read JLS - Java Language Specifications !!!
Please tell me what is all about - Binary Compatibility (Chapter No - 13)
Is that included in the syllabus of SCJP ??
And basically what is that Binary compatibility ?
Rob Ross

Joined: Jan 07, 2002
Posts: 2205
No, Binary Compatability will not be covered on the SCJP test.
It concerns when a compiled bytecode file may need to be recompiled, and when it does not need to be recompiled, in response to changes in classes that compiled file uses. For example, say a class Foo makes use of a class Bar. The programmer then makes changes to the source code in Bar, and recompiles Bar. At this point, Foo may or may not need to be recompiled, depending on the kinds of changes made in Bar.
That's what Binary Compatibility is talking about.

SCJP 1.4
Rajinder Yadav
Ranch Hand

Joined: Jan 18, 2002
Posts: 178
The JLS state that:
"To preserve binary compatibility, a class or interface should treat its accessible members and constructors, their existence and behavior, as a contract with its users."
What this mean is that any class member that is visible to other classes must not change, so variable names cannot change, function signature cannot change. But you are free to change or delete private members. You are also allowed to add new fields and methods, or modify the body of a function, and a few other things.
[ March 06, 2002: Message edited by: Rajinder Yadav ]

<a href="" target="_blank" rel="nofollow">Rajinder Yadav</a><p>Each problem that I solved became a rule which served afterwards to solve other problems. --Rene Descartes
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
Welcome to Javaranch
We'd like you to read the Javaranch Naming Policy and change your publicly displayed name to comply with our unique rule. Thank you for your cooperation.

[Blog] [Blogroll] [My Reviews] My Linked In
I agree. Here's the link:
subject: Confusion
It's not a secret anymore!