Posts

Showing posts from June, 2025

Differences between Java and C

  Differences between Java and C: Differences between Java and C Java is an object oriented language. In an effort to build simple and safe language, the java team did not include some of the c features in Java. ·          Java does not include the C language statement keywords sizeof , and typedef. ·          Java does not contain the data types struct and union . ·          Java does not define the type modifiers keywords auto, extern, signed, and unsigned. ·          Java does not support an explicit pointer type. ·          Java does not have a pre-processor and therefore we cannot use #define, #include, and #ifdef . ·          Java requires that the functions with no arguments must be declared with empty parenthesis and not ...

JAVA NOTES

Image
 OOPs BASICS:                       Object Oriented Programming (OOP) is an approach to program organization and development, which attempts to eliminate some of the pitfalls of conventional programming methods by incorporating the best of structured programming features with several new concepts. However not all languages are suitable to implement the OOP concept easily. Languages that support OOP features include Smalltalk, C++, Ada and object pascal.  Object Oriented Paradigm:           The major Objective of Object Oriented approach is to eliminate some of the flaws encountered in the procedural approach. OOP treats data as a critical element in the program development and does not allow it to flow freely around the system. It ties data more closely to the functions that operate on it and protects it from unintentional modification. OOP allows us to decompose a pro...