what is purpose of writting public static void main(Strind
arg[]) in java..?

Answer Posted / srinivas nallavelli

public-> it must be available to jvm
static-> to use without instantiation
void-> does not return any thing
String[] args -> to take every variable as string
..through cmmand line arguements

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to show whether a graph is a tree or not using adjacency matrix.

844


What is the generic function?

729


What is finally block?

758


Write a program to find the greatest of three numbers in java?

772


What is 16 bits called?

702


State the merge-sort principle and its time complexity.

755


If try block is successfully executed, Then Is Finally block executed?

829


What is the lifetime and scope of a variable?

754


How do you reverse a word in java?

750


What is the difference between the paint() and repaint() methods?

798


What are different data types?

769


How do you differentiate abstract class from interface?

738


Under what conditions is an object’s finalize() method invoked by the garbage collector?

789


What is the difference between Error, defect,fault, failure and mistake?

876


Explain the differences between static and dynamic variables?

848