Explain the difference between private, public, package and protected in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

what is mean by method signature?

8 Answers   Satyam,


Which is better singleton or static class?

0 Answers  


What is continuity of a function?

0 Answers  


Why does java have different data types for integers and floating-point values?

0 Answers  


as we know a static method could access static data and static method only. then how could main method call the object of aclass which is not static and other non static data

1 Answers  


Add a value x to array from index l to r where 0 <= l <= r <= n-1

0 Answers   Amazon,


Explain Global variables in Packages?

4 Answers  


How do singleton patterns work?

0 Answers  


Explain about narrowing conversion in java?

0 Answers  


What is stack example?

0 Answers  


What is the finalize method do?

0 Answers  


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

0 Answers  


Categories