Core Java Interview questions


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

What is the visibility of private access modifier?

Private Specifiers achieves the lowest level of accessibility.private methods and fields can only be accessed within the same class to which the methods and fields belong.Private methods and fields are not visible within subclasses and are not inherited by subclasses.




Next 5 interview question(s)

1

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

2

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

3

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

4

The method finalize() throws which exception?

5

The method clone() throws which exception?