
- Java Tutorial
- Java - Home
- Java - Overview
- Java - Environment Setup
- Java - Basic Syntax
- Java - Object & Classes
- Java - Constructors
- Java - Basic Datatypes
- Java - Variable Types
- Java - Modifier Types
- Java - Basic Operators
- Java - Loop Control
- Java - Decision Making
- Java - Numbers
- Java - Characters
- Java - Strings
- Java - Arrays
- Java - Date & Time
- Java - Regular Expressions
- Java - Methods
- Java - Files and I/O
- Java - Exceptions
- Java - Inner classes
- Java Object Oriented
- Java - Inheritance
- Java - Overriding
- Java - Polymorphism
- Java - Abstraction
- Java - Encapsulation
- Java - Interfaces
- Java - Packages
- Java Advanced
- Java - Data Structures
- Java - Collections
- Java - Generics
- Java - Serialization
- Java - Networking
- Java - Sending Email
- Java - Multithreading
- Java - Applet Basics
- Java - Documentation
- Java Useful Resources
- Java - Questions and Answers
- Java - Quick Guide
- Java - Useful Resources
- Java - Discussion
- Java - Examples
Perl vs Java
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’.
- Related Articles
- C++ vs Java vs Python?
- Cplus plus vs Java vs Python?
- Set vs HashSet vs TreeSet in Java
- Java String.equals vs ==
- Scala vs Java
- POJO vs Java Beans
- equals() vs == in Java
- Inheritance in C++ vs Java
- Foreach in C++ vs Java
- Iterator vs ListIterator in Java?
- Abstraction vs Encapsulation in Java
- Iterator vs forEach in Java
- Hashmap vs WeakHashMap in Java
- IlleagalStateException Vs NoSuchElementException in java?
- ArrayIndexOutOfBoundsException Vs IndexOutOfBoundsException in Java?

Advertisements