How to call static method in Java?

Answer Posted / samar

any one method which is public static and also in public
class can call without create any instance.
in java

public static void main ( string args[])

allways call directly through when class created .
then construct then.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do find the user exit for selected feild whatis the process and can u plz explain it

1727


what are other resources are needed for this mantis?

1521


What are events in smartforms?

1783


what is the current salary package in India for a lamp programmer

1876


is it acceptable if we declare multiple exceptions in same overridden method.

2113






hoe to data grid use in sql server 2000?

1602


Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com

1748


Wrtite a JCL for sorting a file with start from 36 postion lenth 9 excluding a num eq to 98768. for 3 marks mainframe

1469


Is the IT field raise again? What is the position of IT after 4 years?

1689


1.Mutating table

1395


give idea for creating screen in abap

1645


How to use string functions in QTP?give some examples

7121


please any one pass file aid,xpeditor and endeavor tools

1889


Q1.Write a C program which asks the user for a number between 1 to 9 and shows the  number. If the user inputs a number out of the specified range, the program should  show an error and prompt the user for a valid input.

2278


How to connect to ms word wit VB ojective is to prepare s/w to generate question paper , selects questions randomly from the ms access , database

2015