Though I used coded in both BASIC and JAVA, I find that Java is much more efficient and user-friendly. In a program that has repetitive code, it may take hundreds of line for it to be written in BASIC, whereas in Java, such a task could be completed with a maybe a dozen lines. Instances of objects created in Java could easily be modified with a simple method, whereas in BASIC, all instances of the object must be modified within the code itself; hence, if you have a 10000 lines of code for a program, you must go through each instance of the object and change it by hand.
Java is simple in a way where a non-programmer can sort of understand what a specific method or function does. The words used in coding for java can be traced with modern English.
while( x < 20 ) { System.out.print("value of x : " + x ); x++; System.out.print("\n");The above code is a simple while loop and can be translated into a sentence as "while x is less than 20, print the value of x."
Though I have coded in many different languages, I find that Object Oriented languages are the more useful and efficient type of languages out there. C++, Python, Ruby, and PHP are other famous Object Oriented programming languages that are commonly used in today's society.
No comments:
Post a Comment