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

what is the filters in biztakk server? where it can use?

0 Answers   Wipro,


< No Frames > tag is used for

0 Answers  


What do you mean by text editor?

1 Answers   Infosys,


what is difference between object oriented programming structure and object oriented programming system?

0 Answers  


Write a program to create a process in UNIX

0 Answers  






I want Ada programming language books. Could anyone post me any link for that?

0 Answers  


this question is from sas:what is the difference between FILE and INFILE statements? plz explain in brief?

1 Answers  


EXPLAIN UNARY OPEARATORS

0 Answers  


Given a cube of size n*n*n (i.e made up of n^3 smaller cubes), find the number of smaller cubes on the surface. Extend this to k-dimension.

0 Answers   Amazon,


What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?

2 Answers  


what is programmable BIST in today ic design

0 Answers   IIT,


what is oops?

4 Answers   Satyam,


Categories