How to call static method in Java?

Answers were Sorted based on User's Feedback

How to call static method in Java?..

Answer / fakkad


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

What is meant by QUEUE?

4 Answers   Mascot,

how many languages .net is supporting now?

4 Answers  

73. How can you set the status and title for a modal dialog box? a) In the attributes of the corresponding screen. b) Before the corresp. call screen statement. c) In a PBO module of the corresponding screen. d) In the PAI module of the corresponding screen.

1 Answers  

Hi all... I had completed MSC(Computer) and had join the construction company based on sap.they want me to work on abap.but software company is totally different from construction company and they want me 2 grasp it as fast i can.i am finding it difficult.what should i do??????

0 Answers  

What is the meaning of .(dot) in .NET framework?

1 Answers   HCL,

Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik

0 Answers   Mind Tree,

what is different between kenerl mode and user mode?

1 Answers  

which worker is involved in all the phases of SDLC?

0 Answers x=10; float y=20; a=x%2=? b=y%2=?

1 Answers  

How to link calculator in oops concept? how is it working in oops concept? why dont u using in beginning of program 'z' in abap(sap)?

2 Answers  

what is oops?

4 Answers   Satyam,

Write a Pseudo Code to fins the LCM of two given numbers

5 Answers   Goldman Sachs,