answersLogoWhite

0

What java can do?

Updated: 8/10/2023
User Avatar

Wiki User

13y ago

Best Answer

Java is used just about everywhere. Your phone, television, computer etc. Java is the most popular programming language. Example of Java:

import java.io.*;

import java.util.*;

public class Calculator

{

public static void main(String args[])

{

System.out.println("Make your arithmetic selection from the choices below:\n");

System.out.println(" 1. Addition");

System.out.println(" 2. Subtraction");

System.out.println(" 3. Multiplication");

System.out.println(" 4. Division\n");

System.out.print(" Your choice? ");

Scanner kbReader = new Scanner(System.in);

int choice = kbReader.nextInt();

if((choice<=4) && (choice>0))

{

System.out.print("\nEnter first operand. ");

double op1 = kbReader.nextDouble();

System.out.print("\nEnter second operand.");

double op2 = kbReader.nextDouble();

System.out.println("");

switch (choice)

{

case 1: //addition

System.out.println(op1 + " plus " + op2 + " = " + (op1 + op2) );

break;

case 2: //subtraction

System.out.println(op1 + " minus " + op2 + " = " + (op1 - op2) );

break;

case 3: //multiplication

System.out.println(op1 + " times " + op2 + " = " + (op1 * op2) );

break;

case 4: //division

System.out.println(op1 + " divided by " + op2 + " = " + (op1 / op2) );

}

}

else

{

System.out.println("Please enter a 1, 2, 3, or 4.");

}

}

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Java is a program that is used for many things, As in picture wise. Java is a photo uploader. You can download the program. Or you can use Java when you upload Photos on Myspace.com

Another Answer:

Java is powerful and portable. it is a programming language. It's used on Web pages, in cell phones and on mainframes all around the world. A program written in Java on a computer/PC can easily find its way into many different computing platformsmaking Java a popular language for application development.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Java runs on a virtual machine. Because of this, the same java code can run on multiple platforms.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What java can do?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What Indonesian island is Jakarta on?

java


Does Visual Java plus plus and Java Builder is different from the Java language?

Yes!Visual Java plus plus and Java Builder is different from the Java language?


What are the different java technologies?

There are several types of Java technology. Some examples of Java software are Java ME, Java EE, Java SE, and Java Card. Java made the JAVA development kit for those that develop in Java. There is also Java Virtual machine and some class libraries. Java is also famous for its languages like Clojure, Beanshell, Groovy, Gosu, Rhino, Kotlin, JRuby, Scala, and Jython.


Small Java-based programs are called?

Java applets


Differences between Java Applet and Java Beans?

Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC


Who create Java and when?

Who create Java &amp; when? Why he create java ? What are mane functions of it?


What do you call java and javascript?

Well you get java as java and javascript as iava.


Supermost package of java?

The supermost package of Java is the "java" package.


What country is known for its java coffee in the Java sea?

Java coffee is made in Java, which is an island - part of INDONESIA


What is java 7?

Java 7 is the most current version of Java. Many movies and games use Java.


What is java's purpose on my PC?

Programs that are specifically designed with Java require a Java runtime to work on a computer. (In the case of Java, the runtime is called "Java Virtual Machine".) If you have any such program, you need to have Java.


Which one is more advanced core java or java?

The Core Java technologies and application programming interfaces (APIs) are the foundation of the Java Platform, Standard Edition (Java SE). They are used in all classes of Java programming, from desktop applications to Java EE applications. Well What exactly you mean by Java?