answersLogoWhite

0

What does java code look like?

Updated: 10/27/2022
User Avatar

Wiki User

14y ago

Best Answer

Below is a simple example- the function of the code below is to print out the words "Hello" "world" to the screen.

public class Hello

{//opens class

public static void main(String args[]) //main method

{

System.out.println("Hello world"); //prints words in brackets to the screen

}//closes main method

}//closes the class

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does java code look like?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What Is The Java Enum And What Is It Used For?

The best way I can describe an enum is a class of Java language. Enums look like they are used in code string when writing a website.


How do I learn mobile application development?

well you should start by specializing in what programming language you want to code in. for example java and look up java tutorials on youtube and look up tutorials elsewhere. then for example java will branch off into somthing like Java Me ( java and java me are two different things) but you need to learn a certain language before learning about specific development. look into Java or C++ or another base language, then work your way into mobile device development. this will take time and patience to learn.


Abbrevation for JAVA?

"Java" doesn't stand for anything. For some reason wikianswers has Java in capitals, which makes it look like its an abbreviation.


How do you do this java code?

You have to specify the task that you wish me to help you with the Java code.


What does the Java compiler translate Java source code to?

The Java compiler translates Java source code to Java byte code.


How can you get free java projects with source code?

you can check website like ignousupport.blogspot.com which provide free bca and mca projects in java and asp.ner


What did the code look like and how did it work?

what did the code look like and how did it work??


What is a simple java code and explain what the code does?

int a;This simple Java statement declares an integer.


In the first step of the Java hybrid compilation process Java program code is converted into an intermediate format called .?

Java byte code.


What kind of file contain java source code?

'.java' files contain java source code. One can access these files on windows by using 'notepad'.


Difference between a java complier and the Java JIT?

A java compiler takes Java source code and turns it into Java bytecode, which can then be run by the java virtual machine.Using JIT means that the java code will be compiled and executed at the time that you run the program, which will slow down the program because it has to compile the code at the same time that it runs.


Which language is faster java or c plus plus?

C++ compiles to native machine code whereas Java compiles to byte code which must run within the Java Virtual Machine. The extra layer of abstraction means that, comparing like for like, a C++ program will easily outperform its Java equivalent. Thus C++ is easily the faster of the two.