Java is a versatile programming language that enables developers to create robust, high-performance applications. It's one of the most popular languages in use today, and its popularity is only likely to continue to grow in the years ahead. Java is used in a wide variety of settings, from large enterprises to tiny startups, and it's an important part of many software stacks. If you're looking for a versatile, well-supported language that will enable you to build anything you can dream up, Java is definitely worth considering.
Create target based password using cupp tool in termux
History of java
Java is a programming language that enables developers to create robust, high-performance applications. It was first released by Sun Microsystems in 1995 as a core component of Sun Microsystems’ Java platform. Java is used in a wide variety of computing platforms from embedded devices and mobile phones to enterprise servers and supercomputers.
The syntax of the Java programming language is based on C++. However, it has a number of features that distinguish it from C++ and other languages. These include garbage collection, dynamic typing, and a very large and comprehensive standard library.
What you can do with java
Java is a versatile language that can be used on the backend, frontend, or full stack of a web application. It's also used in Android development and many other areas of software development.
There are many different things you can do with Java. You can create desktop applications, mobile applications, and web applications. You can also create video games, system utilities, and scientific applications. Java is also a popular choice for server-side development.
How to run java program on Android
Now if you are thinking to run java program on Android ,its absolutely possible.In the next few steps I will tell you how you can install and run Java program on your Android phone.
Step1
Install termux application on your Android device,a terminal emulator for Android where you can run most of the Linux commands.In addition to Java, Termux supports many other languages like C, python,Ruby,php etc.You can install the termux application form F-Droid or Google play store.Since it hasn't been updated in the Play Store for a long time, I wouldn't recommend you install it from the Google Play Store.
To get more information about termux installation you can visit here.
Step2
After installing termux on Android type the given command and press Enter to update and upgrade your termux pre-installed packages.
Step3
Now enter the given command on Termux to install java
Step4
Here we will need a text editor to write a simple java program. You can install any one between vim and nano.I am installing the vim editor
Step4
Write a simple java program with vim editor.Type vi hello.java to open the vim editor.Then press on i button to enable the editing mode and write any jave program.Below I have written a simple Hello World Java program, you can copy it.
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
And save the file by pressing Esc+:wq+ENTR
Step5
Now execute the java file with the given command
And the output with the look like this 👇
Conclusion
Java programming is a powerful language that can be used for a variety of purposes. This article provides an introduction to Java programming and explains how we can run java programs on Android device with Termux.
0 Comments