What is default specifier ??? Use of default specifier ???

Answer Posted / david sandyp

default is the access given to the class when no access specifier is mentioned ..

Default is not public but it is almost like public.

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is linkedlist thread safe in java?

799


Define reflection.

774


Is hashset sorted in java?

897


What is the default value of float and double datatype in java?

794


What is quick sort in java?

807


Is singleton set an interval?

746


What is the difference between a checked and an unchecked exception?

778


Can a class have multiple subclasses?

844


How do you access command-line arguments within the code?

826


How hashset works internally in java?

818


How do constructors use this() and super()?

836


what is the difference between the methods sleep() and wait()? : Java thread

749


Why we override equals() method?

803


What is exception propagation?

866


Explain the difference between collection api and stream api in java8?

751