basic program

basic program

hii actully i am goin for technical interview on java as fresher so please tell me what these two basic lines means :

public static void main(String arg)

and System.out.print();

please give me meaning of each word

View Answers

January 19, 2011 at 12:02 PM

Hi Friend,

In public static void main(String[]args)

public-It indicates that the main() method can be called by any object.

static-It indicates that the main() method is a class method.

void- It indicates that the main() method has no return value.

(String args[])-It is used for receiving any arbitirary number of arguments and save it in the array.

In system.out.print()

System-The System class is a predefined class contains several useful class fields and methods. It manipulates various operating system related objects and provides access to the system.

out-System class has a field out of type PrintStream class that is connected to the console and allow to display something on console.

print()-It is a method in PrintStream class that displays the String which is passed to it.

Thanks









Related Tutorials/Questions & Answers:
A basic program
A basic program  Write a program that will print out the first 10 numbers, their squares and their cubes. Write a program that displays the first... a program that displays the first 20 powers of 2. Number and then the power
basic program
basic program  hii actully i am goin for technical interview on java as fresher so please tell me what these two basic lines means : public static void main(String arg) and System.out.print(); please give me meaning of each
Advertisements
machine learning basic program
learning basic program Try to provide me good examples or tutorials links so that I can learn the topic "machine learning basic program". Also tell...machine learning basic program  Hi, I am beginner in Data Science
basic
basic  thank you sir for your nice reply . ......sir my next que, if java program is modified,if the program is compiled & executed without saving it again,its previous execution takes place,why
code for a simple java program which performs basic arithmetic operation addition,subtraction,multiplication,division........
code for a simple java program which performs basic arithmetic operation addition,subtraction,multiplication,division........  code for a simple java program which performs basic arithmetic operation addition,subtraction
basic html
basic html  what is the difference between html4 and html5
basic question
basic question  how we create a new table with the same structure and data of another table
basic doubts
basic doubts  can i write two beans within a same xml file..? Also can i write two xml files within a same package
Program
Program  Create a Super class Department(dno, dname, dlocation) and a method calsalary(float basic, float DA, float HRA).Define a subclass Employee(eno, ename, dno, dname, dlocation). Calulate the salary of an employee by using
Program
Program  Create a Super class Department(dno, dname, dlocation) and a method calsalary(float basic, float DA, float HRA).Define a subclass Employee(eno, ename, dno, dname, dlocation). Calulate the salary of an employee by using
size of different basic data types
size of different basic data types   Write a simple program to find the size of different basic data types in java
Java basic question...
Java basic question...   Design a Java Application project...), emp_desig as String (To hold designation of the employee) and basic as Integer (To hold the basic salary of the employee). (iii) Define and declare a method
basic function of computer system
basic function of computer system  What is the basic function of computer system
java basic
java basic  java program for finding LCM and HCF
java basic
java basic  write java program to evaluate 1+x^2+x^3+x^4+............+x^n
ModuleNotFoundError: No module named 'basic-algebra'
ModuleNotFoundError: No module named 'basic-algebra'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic-algebra' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'basic-algorithms'
ModuleNotFoundError: No module named 'basic-algorithms'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic-algorithms' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'basic_argparse'
ModuleNotFoundError: No module named 'basic_argparse'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic_argparse' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'basic-auth'
ModuleNotFoundError: No module named 'basic-auth'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic-auth' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'basic-crud'
ModuleNotFoundError: No module named 'basic-crud'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic-crud' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'basic_crypto'
ModuleNotFoundError: No module named 'basic_crypto'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic_crypto' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'basic-find'
ModuleNotFoundError: No module named 'basic-find'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic-find' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'basic-ml'
ModuleNotFoundError: No module named 'basic-ml'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic-ml' How to remove the ModuleNotFoundError: No module named 'basic-ml
ModuleNotFoundError: No module named 'basic-model'
ModuleNotFoundError: No module named 'basic-model'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic-model' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'Basic-NN'
ModuleNotFoundError: No module named 'Basic-NN'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'Basic-NN' How to remove the ModuleNotFoundError: No module named 'Basic-NN
ModuleNotFoundError: No module named 'basic_oauth'
ModuleNotFoundError: No module named 'basic_oauth'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic_oauth' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'basic-utility'
ModuleNotFoundError: No module named 'basic-utility'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic-utility' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'basic-utils'
ModuleNotFoundError: No module named 'basic-utils'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic-utils' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'basic-wrangler'
ModuleNotFoundError: No module named 'basic-wrangler'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'basic-wrangler' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'cml-basic'
ModuleNotFoundError: No module named 'cml-basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'cml-basic' How to remove the ModuleNotFoundError: No module named 'cml
ModuleNotFoundError: No module named 'cml-basic'
ModuleNotFoundError: No module named 'cml-basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'cml-basic' How to remove the ModuleNotFoundError: No module named 'cml
ModuleNotFoundError: No module named 'cml-basic'
ModuleNotFoundError: No module named 'cml-basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'cml-basic' How to remove the ModuleNotFoundError: No module named 'cml
ModuleNotFoundError: No module named 'cml-basic'
ModuleNotFoundError: No module named 'cml-basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'cml-basic' How to remove the ModuleNotFoundError: No module named 'cml
ModuleNotFoundError: No module named 'dndbuddy-basic'
ModuleNotFoundError: No module named 'dndbuddy-basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'dndbuddy-basic' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'modeldb-basic'
ModuleNotFoundError: No module named 'modeldb-basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'modeldb-basic' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'PiRSClock-Basic'
ModuleNotFoundError: No module named 'PiRSClock-Basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'PiRSClock-Basic' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'prancer-basic'
ModuleNotFoundError: No module named 'prancer-basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'prancer-basic' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'probe-basic'
ModuleNotFoundError: No module named 'probe-basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'probe-basic' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'QCAT-Basic'
ModuleNotFoundError: No module named 'QCAT-Basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'QCAT-Basic' How to remove the ModuleNotFoundError: No module named 'QCAT
ModuleNotFoundError: No module named 'QCAT-Basic'
ModuleNotFoundError: No module named 'QCAT-Basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'QCAT-Basic' How to remove the ModuleNotFoundError: No module named 'QCAT
ModuleNotFoundError: No module named 'salesforce-basic'
ModuleNotFoundError: No module named 'salesforce-basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'salesforce-basic' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'stadistic_basic'
ModuleNotFoundError: No module named 'stadistic_basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'stadistic_basic' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'stadistic_basic'
ModuleNotFoundError: No module named 'stadistic_basic'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'stadistic_basic' How to remove the ModuleNotFoundError: No module named
Basic Validators provided by the framework.
Basic Validators provided by the framework.  What are Validators? and What are Basic Validators provided by the framework
program
program  any program of hotel or school management
program
program  write a javascript program to create a application form with validation
program
program  program of jdbc using ms access for creating table
program
program  write a html program in show table and this word in box
program
program  write a program different between to dates in terms of days in java
program
program  WAP a java program to form 1/2+3/4+5/6+7/8 series

Ads