How to call static method in Java?

Answers were Sorted based on User's Feedback



How to call static method in Java?..

Answer / fakkad

classname.methodname();

Is This Answer Correct ?    7 Yes 0 No

How to call static method in Java?..

Answer / 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

More Programming Languages AllOther Interview Questions

Which language they use during interview?

0 Answers   State Bank Of India SBI,


needs examples for black box testing and white box testing

1 Answers   CTS, IBM, Wipro,


Which tag is used to break a line

3 Answers  


What is Meaning of Windows Application & the use of Windows Applications? with Description.

1 Answers  


i am exeprienced person what is selection process

0 Answers   BitWise,






what is the diffrence between occur 0 and occur 10 in ABAP.

0 Answers  


i need informatica certification dumps(S-powercenter 8 mapping designer)......plz fwd it to my mail id:gaya1989@yahoo.com

1 Answers  


A string of charaters were given. Find the highest occurance of a character and display that character. eg.: INPUT: AEGBCNAVNEETGUPTAEDAGPE

7 Answers   Nagarro,


I am looking for selenium RC online Training in chennai. can any one tell me the best institute

0 Answers  


What do you mean by an array ? explain with an example

7 Answers  


there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box. eg: 3 box contain stick as:1,1,1. if u take 1 stick from 3rd numbred box you will any how win the match.

0 Answers   Manhattan,


Define Abstract method & class with Example

3 Answers  


Categories