Core Java Interview questions

Total available count: 646
Subject - Java Technologies
Subsubject - Core Java

What is visibility of default(no specifier) access modifier?

When you don't set access specifier for the element, it will be treated as default access modifier. There is no default specifier keyword. Classes, variables, and methods can be default accessed.Using default specifier we can access class, method, or field which belongs to same package,but not from outside this package.

Next 5 interview question(s)


What is visibility of protected access modifier?


What is the visibility of public access modifier?


What is the visibility of private access modifier?


How many types of access modifiers are available in java, mention them?


What is returned by the method toString() in java?