How can a class be accessed, If no access modifiers are
declared?

Answer Posted / ravikiran(aptech mumbai)

the default access will be resticted to the classes with in
the same package

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can one thread block the other thread?

601


Is int primitive data type?

504


How we can run a jar file through command prompt in java?

516


What about main() method in java ?

565


What is a default method?

517






Is this valid in java ? Can we instantiate interface in java?

544


What do you understand by the bean persistent property?

549


What is the purpose of assert keyword used in jdk1.4.x?

558


Is ++ operator thread-safe in java?

627


What is string :: npos?

577


Is string is a data type?

568


Can we have multiple classes in single file ?

599


what is aggregation in java?

584


What is parsing a string?

586


Explain the scope of a variable.

627