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

What modifiers are used with a top level class?

3 Answers  


What are peerless components in java programming?

0 Answers  


what is polymorhism what is inheritance? what is Abstract n Interface? what if two interfaces have same method and a concrete class is implementing both the interfaces. Will there be a compilation error? What are mutable and immutable classes? How can u make a class mutable? when will u use dem ...explain with example? what is overriding and overloading? what is garbage collection? what is Thread? how do dey communicate? what are the different ways of implementing ? have u used any messaging technologies? what is synchronization? what are some additions in java 1.5? what are generics? whst is advanced for loop? what is finally block? can u have a try in finally? yes!! can u have a finally in finally? how do you write junits? when is a object eligible for garbage collection?explain? a = null and b has ref to a will b be eligible to be garbage collected? sql questions like diff joins? how do dey work? exception handling? what is marker interface? what is the need??

0 Answers   JPMorgan Chase,


Difference between java and javascript

0 Answers  


What is hashset in java?

0 Answers  


What is a war file?

0 Answers  


Name the method that used to clear the buffer ?

2 Answers  


Can we extend the String class?

3 Answers   Truworth,


Can two objects have same hashcode?

0 Answers  


What is variable declaration and definition?

0 Answers  


What is an example of a conditional statement?

0 Answers  


What happens if a constructor is declared private?

0 Answers  


Categories