Advertisement
uopspop

Untitled

Sep 10th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. Conduct an internet search on programming languages. Identify a language that is compiled and compare the features of this language with Python, which is an interpreted language. Discuss the advantage and disadvantages of each and provide one example each of where interpreted and compiled languages would be most appropriate.
  2. *Note: Your post must be 75 words minimum for full credit.
  3.  
  4. The Comparison between Python and Java
  5. Java is a compiled language while Python is an interpreted language. There are many differences between compiled languages and interpreted languages. First, interpreted languages are portable across operating systems because it converts its source codes only at the last minute, but compiled languages convert the source codes into platform-specific binary codes right away (Compiled vs. Interpreted Languages, n.d.). Second, the compilers in compiled languages need to know how to convert source codes into binary codes, so programmers need to define the type of values in the source code; the interpreters in interpreted languages can identify what type the programmers intend to use, but this comes with the price of longer processing time.
  6. Although Java is considered a compiled language, it still keeps the advantage of portability. Unlike the other compiled languages like C, Java does not directly compile code into binary files; instead, Java compiles code into bytecode first. Then, it uses JVM, a kind of virtual machine, to interpret that bytecode into executable codes according to the current platform at execution time (McKenzie C., n.d.).
  7. The recommended scenario to use interpreted languages such as Python over compiled languages is when a Proof of Concept is required for a future product in a company. Since you don’t need to compile code before you want to do any testing, it saves time to quickly develop a small product. However, when you want to use an application for a long-running service such as banking transaction, interpreted languages will take up too much memory and CPU. Then, it is time to switch to compiled languages like Java. Compiled languages can take advantage of its fast execution time because it already prepares binary code.
  8. References
  9. Compiled vs. Interpreted Languages. (n.d.). In VanguardSW. Retrieved from http://www.vanguardsw.com/dphelp4/dph00296.htm
  10. McKenzie C. (n.d.). JAVA. Retrieved from https://www.theserverside.com/definition/Java
  11. words: 286
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement