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

how to convert the data from HTML file to SAS dataset?

0 Answers   Accenture,


given a height balanced tree. If we add one more node , how many nodes gets unbalanced ?

2 Answers   Hughes,


what is programmable BIST in today ic design

0 Answers   IIT,


Given: (x-2)(x+3)= 100; solve the equation for x using any programing language.

2 Answers   Amazon, Manhattan,


why we use new keyword for object

4 Answers   TCS,






Is CTS company do serious backgroung check?

0 Answers   CTS,


Difference of Console, web & windows applications?

0 Answers  


2. What do you mean by DHCP?

1 Answers  


What is the difference beween joblib and steplib statements

0 Answers   Maples,


In java without use of main() how to execute the program

0 Answers  


Who is providing best mainframes online training in Hyderabad

1 Answers  


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

0 Answers  


Categories