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




Have Programming Question? Ask it here!
 
 
 


nishant srivastava
basic program
1 Answer(s)      3 years and 7 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
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
java and visual basic
java and visual basic  Hello, Please how does java and visual basic interact or talk
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
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
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
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 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
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
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
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
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
Core java Basic
Core java Basic  How to compile a program using the package statement at the first line.Do I have to create a a Seperate Folder with the name of the package in my directory.Please tell me the steps
JSP basic doubt
JSP basic doubt  String user = request.getParameter("username"); in this "user" value is null or not how to validate? before going further action.   Hi Friend, Either you can do the following : 1)login.jsp: <
java basic - Development process
java basic  Hi, I write a program for printing string n no of times.i gave string in console.if i gave '&' or '|' or '>' or '<'.so i want to take & as a string without giving " " for the &.directly i gave the string
Basic CRUD operations
Basic CRUD operations  LOGIC SERVLET package com.tcs.ilp.h51.servlet; import java.io.IOException; import java.sql.SQLException; import java.util.ArrayList; import javax.servlet.RequestDispatcher; import
Basic CRUD operations
Basic CRUD operations  LOGIC SERVLET package com.tcs.ilp.h51.servlet; import java.io.IOException; import java.sql.SQLException; import java.util.ArrayList; import javax.servlet.RequestDispatcher; import
Basic CRUD operations
Basic CRUD operations  LOGIC SERVLET package com.tcs.ilp.h51.servlet; import java.io.IOException; import java.sql.SQLException; import java.util.ArrayList; import javax.servlet.RequestDispatcher; import
top 20 basic programm of java
top 20 basic programm of java  what is the top 20 rule to learn the basic of java.   Learn Java through the following links: http://www.roseindia.net/java/ http://www.roseindia.net/java/beginners/index.shtml
Basic Filter
Basic Filter       Basic Filter Basic filter is used to implement some properties like filter...; </body> </html> OUTPUT Description of program
Basic authentication
Basic authentication       Basic authentication is the process through which a web server authenticates... of the sites uses the basic authentication mechanism to protect the user from browsing
updating an access database with visual basic 2010
updating an access database with visual basic 2010  I am building a program in visual basic 2010 that connects to an access database. I was wondering if you could help me figure out the code for the save button. When
Basic Diffence between Swing-AWT - Swing AWT
Basic Diffence between Swing-AWT  What is Basic Diffence between Swing-AWT
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
program
program  any program of hotel or school management
php Basic Syntax
php Basic Syntax       In the given tutorial we will study how to write the basic syntax of php: <?php ?> The above mentioned tag will be included in each php file and each php coding
Java How to Program
Java program on your computer and also how to write and run your first java... bytecode into machine language on the target processor. Java How to Program... steps of Java How to Program: Download and setup a Java Development environment
program
program  program of jdbc using ms access for creating table
program
program  write a javascript program to create a application form with validation
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   Write a program to find the difference between sum of the squares and the square of the sums of n numbers
Advertisements
 

 

 

DMCA.com