Object Oriented Programming: Java And Java
“Object oriented programming is a programming paradigm based on the concept of “objects”, which may contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods.” In object oriented programming, the user inputs a set of data, the programming then processes the information and outputs the outcome. Most of the programming languages used support object oriented programming. Some of these languages include Java, C#, Python, PHP, Ruby, Perl. Delphi, Objective-C, Swift, Common Lisp and Smalltalk. For the purpose of this paper, I will compare C# and Java.
Description and Background of Java
Java is an object oriented programming language that is designed to “write once, run anywhere”. The idea of Java was first initiated in June 1991 and later debuted on May 23, 1995. James Gosling, Mike Sheridan and Patrick Naughton …show more content…
One major similarity shared between the two is that they are both Object Oriented Programming languages. These two languages subclass objects and have predefined stack classes. Both languages also provide a built-in garbage collection, which allows the program to tell the user to delete an item if it is not needed. They both class instances are referenced using the new operator. Another common similarity is that both languages only allow one inheritance; however, every class is allowed to implement many interfaces. These two languages provide an easy way for the developer to create a built-in multi-threaded application. One of the most important features that is shared between the two is that C# and Java encode all characters using 16 bits, rather than 8. This feature is better known as Unicode. These two languages also share a commonality in keywords that are used within the programs. These keywords include new, bool, this, break, static, class, throw, virtual and null. When dealing with modifiers, C# and Java both use the terms public and