What modifiers are used with a top level class?

Answers were Sorted based on User's Feedback



What modifiers are used with a top level class?..

Answer / ranganathkini

The modifiers for a top-leve class are:

public
abstract
final
strictfp

Is This Answer Correct ?    5 Yes 2 No

What modifiers are used with a top level class?..

Answer / ravikiran

public or default

Is This Answer Correct ?    3 Yes 0 No

What modifiers are used with a top level class?..

Answer / bhushan

public,
private

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

How does a for loop work?

0 Answers  


What is ++ a in java?

0 Answers  


Sample code to retrieve objects from HashMap in sorted ascending order?

2 Answers  


Differentiate between a constructor and a method? Can we mark constructors final?

0 Answers  


What is hashmap in java?

0 Answers  






Can you call a method on a null object?

0 Answers  


What is static synchronization?

0 Answers  


What is map java?

0 Answers  


What is the difference between instanceof and isinstance?

0 Answers  


What language is pass by reference?

0 Answers  


How many bytes is string in java?

0 Answers  


What will be the default values of all the elements of an array defined as an instance variable?

0 Answers  


Categories