What is the public method modifier?



What is the public method modifier?..

Answer / Birendra Singh Kutiyal

The 'public' modifier in Java makes a method, variable or class accessible from any other class of the same package or from outside it. It is the default access modifier for methods and variables.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

1 Answers  


What is import java util arraylist?

1 Answers  


What is stored procedure. How do you create stored procedure ?

1 Answers   GE,


which method is used to know the status of the Thread?

9 Answers   Honeywell,


What classes of exceptions, thrown by a throw statement?

2 Answers  


what is the purpose of class "Object" which is base class for all classes?

3 Answers  


what is abstract class in Java?

1 Answers   Hexaware, Syntel,


How can we make a class virtual?

1 Answers   Fidelity,


What are inbuilt functions in java?

1 Answers  


What is a default method?

1 Answers  


What is append function?

1 Answers  


What is the use of list in java?

1 Answers  


Categories