Can an interface be defined inside a class?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

ublic class Java_Coding_Samples { public static void JavaHungr(NumberFormatException ae){ System.out.println("integer"); } public static void JavaHungry(Exception e){ System.out.println("string"); } public static void JavaHungry(ArithmeticException ae){ System.out.println("object"); } public static void main(String[] args) { JavaHungry(null); }

1 Answers  


Difference between Array and vector?

9 Answers  


What is covariant return type?

0 Answers  


Does list allow duplicates in java?

0 Answers  


How finally used under exception handling?

0 Answers  






Can constructor be protected in java?

0 Answers  


What is function and its uses?

0 Answers  


Explain Big-O notation with an example

1 Answers  


Which are different kinds of source code?

0 Answers  


Why all programming languages have main as a execution starting point?

4 Answers  


What is mutable object and immutable object?

0 Answers  


Can you access the private method from outside the class?

0 Answers  


Categories