answersLogoWhite

0

Examples of codes in java

Updated: 8/11/2023
User Avatar

Wiki User

14y ago

Best Answer

public class Hello
{//opens the class
public static void main(String args[])
{//opens the main method
System.out.println("Hello World");
}//closes the main method

}//closes the class







Note: The compiler all the sentences that have "//" before them.

User Avatar

Wiki User

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

Wiki User

14y ago

Predefined methods refers to the methods in the Java API. the methods that are present in the Java Class libraries that we can use.

Ex: String.equals() or Math.random() etc are predefined methods.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Examples of codes in java
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you import others codes in java?

using servlets, php, and database we can connect import codes into java


What are some example for string formatting in Java?

There are lots of examples of string formatting in Java. It can be difficult at times. Some of these examples are, but are not limited to; align, string, format, and JAVA.


What are good Java script codes?

depending on the intention of the javascript codes you wish to write. there is much you can do with javascript but the only way to find out what "good Java script codes" are is to explore what you want the Javascript to do on the page.


Which programming language generates byte codes?

Java


Codes in making a receipt using a java?

yes


What are Perl PHP and Java Servlet's?

Perl, php and Java are all examples of programming languages.


C plus plus and java are examples of what languages?

They are not examples of languages. They arelanguages.


Is java is a platform independent language?

Yes. Apart from lower grade mobiles which have no support for java, java written codes can execute on all platforms and all devices.


What are the examples of assembly languages?

Fortran & Pascal


Is there somebody help me to find a sites or source codes that will count the running time complexity of a certain codes in Java?

Google


What are the examples of Java script?

validation of forms, date & time.


What are the examples of object oriented programming environments?

Java, C++