Thursday, July 9, 2009

Wha is the difference between the packages and classes in Java API and C API ? is it same?

Well C and Java are entirely different languages though java inherits its syntax from C.





C is a function oriented language where program revolves around functions.





Java is an object oriented language and revolves around objects + messages.





So there are no classes and packages in C language because a class represents an object and a package is a set of related objects where we put related classes into a package. So C don't have anything like classes and packages.





Hope it clears your basic concept.





regards





saif ullah


No comments:

Post a Comment