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 is command line used for?

0 Answers  


What is a boolean expression in java?

0 Answers  


Explain about anonymous inner classes ?

0 Answers  


what is Portal(web based online portal)?

2 Answers   AIG,


Explain the difference between association, aggregation and inheritance relationships.

0 Answers  






In java, what is the difference between method overloading and method overriding?

0 Answers  


what are class,constructor and primitive data types?

2 Answers   IBM,


What classes can be used to store arbitrary number of objects ?

1 Answers  


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

0 Answers   Genpact,


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

0 Answers  


Write a function for palindrome and factorial and explain?

0 Answers   Honeywell, Huawei, Zomato,


10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } } 10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } }

0 Answers  


Categories