What is JAVA ?
Java is a general-purpose computer-programming language that is concurrent,class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation. As of 2016, Java is one of the most popular programming languages in use, particularly for client-server web applications, with a reported 9 million developers. Java was originally developed by James Gosling at Sun Microsystems (which has since beenacquired by Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them.How to install JAVA in android ?
Open the GNURoot Debian app and type following commands.
apt-get update
apt-get upgrade
apt-get install openjdk-7-jdk
To check java version type :-
- java -version
To check java compiler version type :-
- javac -version
Now you can run any java file in your android phone
To compile java file type :-
javac filename.java
java filename
Comments
Post a Comment