Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


nishant srivastava
basic program
1 Answer(s)      3 years and 10 months ago
Posted in : Java Beginners


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


Advertisement
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
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
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
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
Basic Validators provided by the framework.
Basic Validators provided by the framework.  What are Validators? and What are Basic Validators provided by the framework
java core basic problem
java core basic problem  my question is: write a program that illustrates interface inheritance. interface P is extended by P1 and P2. interface... methode. class Q impliments P12 Instantiate Q and invoke each of its methods.Each
java core basic problem
java core basic problem  my question is: write a program that illustrates interface inheritance. interface P is extended by P1 and P2. interface... methode. class Q impliments P12 Instantiate Q and invoke each of its methods.Each
BASIC Java - Java Tutorials
Basic Java Syntax This tutorial guide you about the basic syntax of the java programming language. For writing any program, you need to keep in mind... of the java which is applicable to all java program : Case Sensitive Java Java
Basic Java Tutorial
Basic Java Tutorial  Hi, Where is the url of Basic Java Tutorials on roseindia.net? Thanks   Hi, You can Learn Java in a Day also? Thanks
basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function
basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function
java and visual basic
java and visual basic  Hello, Please how does java and visual basic interact or talk
Basic problem for Java experts
Basic problem for Java experts  This assignment will test your... An athletics club require a simple statistical analysis program for analysing lap speed for runners. The program should provide the following functionality Allow
visual basic coding...
visual basic coding...  Visual Basic Game Programming please help me to build visual basic code with four screens (spin,bet,help and exit... a)Develop a simple Slot machine Jackpot system. Be as creative as possible
Basic for iphone development??
Basic for iphone development??  hiii... I want to go for iphone development .. What are the basic for iphone development can some body...//appleref/doc/uid/TP40007593 from here you can study about iphone basic development
spring basic example
spring basic example  hi,, i cannot understand the flow of the spring mvc example. can you explain execution flow of the spring example project?? thanks
basic java - Java Beginners
basic java  oops concept in java ?  Hi Friend, Please visit the following links: http://www.roseindia.net/java/beginners/oop-in-java.shtml http://www.roseindia.net/java/learn-java-in-a-day/oops.shtml Thanks
Voice Recognition in Visual Basic
Voice Recognition in Visual Basic  Sir, I'm BCA final year student and "voice recognition" is my major project,I want to make it by myself in "Visual Basic" How can it possible in 'V.B.net'. which initial step should i follow
Hibernate Basic Example not working
Hibernate Basic Example not working  I have implemented basic hibernate example from your site . In console i got output but database is not affected. hbm.xml <id name="id" type="long" column="id"> <generator
Need an example of basic code.
Need an example of basic code.   Im working on an art project that I want to use some code in, and I am proficient in python but that looks fairly simple so I was hoping java would look more impressive. So I just need a visual
Need an example of basic code.
Need an example of basic code.   Im working on an art project that I want to use some code in, and I am proficient in python but that looks fairly simple so I was hoping java would look more impressive. So I just need a visual
Need an example of basic code.
Need an example of basic code.   Im working on an art project that I want to use some code in, and I am proficient in python but that looks fairly simple so I was hoping java would look more impressive. So I just need a visual
Basic on J2ee - Java Beginners
Basic on J2ee  J2EE is a platform that helps us to develop and deploy enterprise application.It follows the component based architecure. So, it means that an application is developed in components in order to acheive reusability
 

 

 

DMCA.com