Core Java Interview questions


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

What is the visibility of public access modifier?

Public Specifiers achieves the highest level of accessibility. Classes, methods, and fields declared as public can be accessed from any class in the Java program, whether these classes are in the same package or in another package.




Next 5 interview question(s)

1

What is the visibility of private access modifier?

2

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

3

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

4

 Which method is invoked by the garbage collector before object is being garbage collected?

5

The method finalize() throws which exception?