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

Difference of Console, web & windows applications?

0 Answers  


HOW TO FIND NUMBER OF TWOS IN N!(N FACTORIAL)??

0 Answers  


in a company 30% are supervisors and 40% employees are male if 60% of supervisors are male. what is the probability that a randomly choosen employee is a male or female?need steps to solve this?

1 Answers   TCS,


I've an application where i need to give access to all the features only to admin and only few features to normal users. Say Menu...i dont want all my menu items to be accessible to all the users only the admin people can see few all the features where as normal users can have access to limited menu items...how can i achieve this. Please note that my menu is not a database driven menu.

1 Answers   Tesco,


what do u mean by html

5 Answers   Infosys,






what is the difference between SCAN AND CHECK,LOKUP AND XFOOT? where we can use thease opcodes? Can any body tell me real time senariao with example?

0 Answers  


Find out the list of authorization objects which contains activity as a field? Thanks in advance.

0 Answers  


Colors specified with the notation

0 Answers  


In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?

0 Answers   DST Global Solutions,


Write a program to create a process in UNIX

0 Answers  


what is the difference between java , sap ,.net , orecle apps ?

1 Answers  


What is a dialog based program

1 Answers  


Categories