answersLogoWhite

0

The fundamental structure of any Java programme should look like:

[package declarations]

[import statements]

[class declaration]

An example is given below:

package abc;

import java.lang;

class Demo {

public static void main(String[] args) {

Sytem.out.println("Hello! World");

}

}

//The file containing this class must be named Demo.java

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is a java programming?

A java program is a program that is coded and run in the programming language called java. Java is similar to c++ in structure, and is more common in web apps. C++ is the equivalent for more heavy duty programs such as most software used to compose a java program.


What do you mean by multithread program in java?

A Program in Java that spawns multiple threads is called a multithreaded program in Java.


What is java program made of?

basic unit of C is structure like procedure ,syntax's, error's compiler etc


What is java program on computers?

#!/usr/bin/perl print 'java program';


What is java virtucal mechine?

That refers to the program that runs the compiled Java program.


Where can one find more information on Java car rental?

Java Car Rental is an opensource program which you can find on various forums across the net, though the best place to learn how to create this program is Rose India. They offer the code and explain the variables you can tweak for your business - it is actually quite simple, and there are various places to go for tutorials that explain how you can tweak this program to your liking.


What powder game doesnt need java?

Any program written for the Java technology needs Java. Any program NOT written for Java DOESN'T need it.


Java Track?

Java Track is the java training program offered by SynergisticIT


Where can one get the program Java?

The program Java can be downloaded from the official Java website on the internet. The program is free for personal use, so it can be downloaded without any cost by anyone.


What is a Java applet?

PCH answer small Embedded Java Program.


Explain the role of sizeof operator in java?

There is no sizeOf() operator in Java.


Do I need Java?

No, if a program needs Java it'll specify that it does in the installer package for the program or on the website for the program or a section usually called "Requirements" for a specific program.