Java
- Java is an object oriented programming language as well as a computing platform.
- It is safe, quick and reliable.
- The code in Java is first converted into bytecode and then executed using a JVM (Java Virtual
Machine).
- The java program that is converted into bytecode is stored with the help of the extension
‘.class’.
- Java doesn’t give any specific way in which associative arrays could be stored, instead there
are implementations of various hash functions.
- Java programs that need to be run are stored with the extension ‘.java’.
- Java is a statically typed language, i.e type checking is performed during compile-time (not
run-time).
- Single line comments in Java are specified using ‘//’.
- Multi-line comments in Java are specified using ‘/*’ and ends with ‘*/’.
- Java documentation is done with the help of ‘/**’ and ends with ‘*/’.
- Every statement ends with a ‘;’.
Perl
- Every statement ends with a ‘;’.
- It is considered as a general purpose high-level language.
- It was created to replace with shell scripts that were too complex.
- Versions before and up to Perl 5 is considered to be interpreted language.
- Perl 6 version is compiled to Parrot Bytecode and stored with the extension ‘.pbc’.
- Associative arrays are specifically defined in Perl.
- Perl code is stored with the extension ‘pl’.
- It is a dynamically typed language, i.e. the type of variables and functions is checked at runtime.
- Comments are written in Perl code using ‘#’.
- Documentation is specified in Perl code using ‘=’ and ‘=cut’.