Differences Between Java And Object Oriented Programming

Object-oriented programming is a programming program based on the concept of objects, which are data structures that contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods (Rentsch, T. (1984). Java and Python are both widely used Object oriented programming languages that were developed in the late 1990s and are still currently used today. This paper will discuss the background of both languages along with the key similarities and differences between them.

Python is an object oriented programming language that is currently used for statistical analysis, web applications and some programmers are giving it the potential to be used to write mobile applications. Python was developed
…show more content…
With python you do not need to declare the variables type. Along with not needing to declare the type with python you can change it later on in the code. While with java you set the type from the beginning and it sticks with the variable until the end. With classes java has each class in a different file while python lets you have all of the classes in the same file. Having the all of the classes in the same document can be cluttering though so java implementation allows code to be broken up easier. Another difference is in the looping of each language Java has while, do while, and for loops. While Python only has while and for loops.

Some of the key similarities between java and python are there garbage collection system which is used for managing memory. This garbage collector is very useful as it allows programmers not to worry about freeing allocated memory the language has it built in. Another similarity is that as an object oriented language they both contain classes. They are both cross platform languages. They both contain huge libraries. Python and java have the ability to use each others already massive libraries allowing you limitless

Related Documents