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

9. Read the function conv() given below conv(int t) { int u; u=5/9 * (t-32); return(u); } What is returned (a) 15 (b) 0 (c) 16.1 (d) 29

2 Answers   TCS,


THERE ARE 4 SOURCE FILES WHICH CONTAINS SAME METADATA CREATE A TARGET THAT SHOULD DISPLAY THE FILE NAME ALONG WITH THE RECORD PLEASE SEND THE ANSWERFOR THIS QUESTION WITH MAPPING

1 Answers   Wipro,


Given a arbitrary pointer to an element in a singly linked list?what is the time complexity for its deletion .

1 Answers   Hughes,


There is a table which contains all the employee details, unfortunately there is mistake occured while entering the data. ex: ------------------------------- empid empname gender address ------------------------------- 1 abcd f address1 2 defg m address2 3 ghth m address3 4 jkil f address4 write a update query that will change gender 'm' to 'f' and 'f' to 'm'

2 Answers  


Binary tree?

1 Answers   Mascot,


How to swap values between two variables without using a third variable?

24 Answers   HCL, TCS,


what you mean by mantis in IT interview? why we use mantis? advantage of mantis?

1 Answers  


what are methods we have in connection pooling

1 Answers   Wipro,


How to find out the user exit for va01.

1 Answers  


qtp 9.2 14 days demo version was expired.I uninstalled how to reinstall this again

1 Answers  


What is nocopy in plsql?

1 Answers   IBA Health,


What's the difference b/w Table & Templete in Smartform?

1 Answers   Accenture,


Categories