aspose file tools*
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Confusion" Watch "Confusion" New topic
Author

Confusion

dharmin_desai
Greenhorn

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
Bartender

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.


Rob
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="http://www.rajindery.com" 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
Sheriff

Joined: Aug 26, 2001
Posts: 7610
dharmin,
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.


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Confusion