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)

1

What is visibility of protected access modifier?

2

What is the visibility of public access modifier?

3

What is the visibility of private access modifier?

4

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

5

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