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

kindly send interview materials

0 Answers   SoftSquare,


Binary tree?

1 Answers   Mascot,


Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage

0 Answers   TCS,


How to update a data for the views in the relational data base schema

1 Answers   TCS,


I would like to know which institute in hyderabad provides best ms-dot net training along with a project. I want to join immediately. please help

2 Answers  


what is the certificates in biztalk?

0 Answers  


is it acceptable if we declare multiple exceptions in same overridden method.

0 Answers  


How to call a C++ function which is compiled with C++ compiler in C code?

0 Answers   Yahoo,


1. Write a program to create a sentence at runtime and count number of vowels in it ? 2. Write a program to get a string and to convert the 1st letter of it to uppercase ?

0 Answers   HTC,


what is delegate and how works delegate and event.

0 Answers   NIIT,


how CLR identify vb file?

0 Answers   Tech Mahindra,


In JCl , we have COND parameter.This holds comparison code and condition.It also has only and even parameters. ex: COND((4,GE),EVEN).what the comma mean here. is that 'and' or 'or'.

0 Answers   L&T,


Categories