answersLogoWhite

0


Best Answer

Java's main function denotes the entry point into the execution of your program.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: In java public static voidmain function denotes what?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the Java source code for the program which print the prime no series?

public class PrimeNumberPrint {/*** @param args*/public static voidmain(String[] args) {// TODO Auto-generated method stubfor(int i =2; i < 10; i++) {System.out.println(i + " is prime is " + isPrime(i));}}public static booleanisPrime(int n) {int x = n;for(int i=2; i


What is function of static relay?

function of static relay


What is the function of static relay?

function of static relay


Why the main function is public and static?

The main function is public because it means it needs to be called by any object. I had to check this myself but if you try to make the main function in Java private it will give you a run time error. It is static because it is indicating it is a class method and it does not need to be instantiated. Without the static keyword you would need to do something like this Main main = new Main();


What is the difference between static function and global static function?

'global static'?! There is no such thing.


What is the Use of static function?

A static function is a member function that is not associated with any instance of the class; it has no this pointer.


Is a public function accessed like a non-member function?

A public function is scoped to the class in which it is declared. If declared non-static, then it must be invoked against an instance of the class but if declared static then namespace resolution is required to access the function. A non-member function is not scoped to any class but may be scoped to a namespace. If no namespace is specified, then it is scoped to the (unnamed) global namespace. If scoped to any other namespace then namespace resolution is required to access the function.


Can you interchange the term public and static in java?

The two are different, and independent from one another. A variable can be public, static, both public and static, or neither.


What is the Difference between public static void and static public void?

There is no difference between public static void and static public void


How do you create static variables in PHP?

Use the "static" keyword to declare a static variable within a function like shown below. &lt;?php function fun() { static $variable; static $another_variable = ''; } ?&gt;


Scope of static variables?

Scope of static variable is with in the file if it is static global. Scope of static variable is with in the function if variable is declared local to a function. But the life time is throughout the program


When Static function can work with static data member only?

Always.