This post explains some aspects related to Java programming language.
If you want to read a more general introduction to the Java and not only the language itself (including how to learn Java or getting support on Java), please read this post.
Introduction to Java Programming Language
Java programming language is one of the most popular, specially in cross-platform applications and business environments.
It is high-level because it hides some computer complexities (like memory management) to the developer.
It is class-based because the code is organized under classes.
It is object-oriented because it is based on the object-oriented programming paradigm.
It is cross-platform because the compiled code (called Java bytcode) can be executed in different platforms without modifications (the utopian motto “write once, run everywhere“).
It is interpreted because it requires a virtual machine to run its code.
As an overview, Java source code needs to be compiled, generating what is known as Java bytecode. This bytecode can be run on any machine that has installed a virtual machine, that in the case of Java is called Java Virtual Machine (JVM).
Java source code is stored as Java files, with .java extension. Bytecode is stored as Class files, with .class extension.
Programming Solutions to Common Problems in Java
This section summarizes some posts I have written that solves a general problem through coding. If the solution is found out of the code (for example, modifying the compiler configuration, IDE, etc.) they are not included here.
Solutions to Common Problems in Java featured on this post:
- Checking if User running the Java App is Admin
- Creating Java International Applications
- Executing an OS command from a Java application
- Identifying OS from a Java program
- Working with File Resources in Java Applications
Checking if User running the Java App is Admin
To check whether the user running the Java app is admin, please check this post.
Creating Java International Applications
To find more information about how to create a Java (multilingual, locale handling, etc.) program please check this post.
Executing an OS command from a Java Application
To see how to call an OS command from a Java Application, please check this post.
Identifying OS from a Java Program
To know how to identify the OS from a Java program, please check this post.
Working with File Resources in Java Applications
To find more information about how to work with file resources (like images, sound files, videos, property files, etc.) please check this post.