Write code of any action class?
How to know the host from which Applet is originated?
Can we declare a class as abstract without having any abstract method?
Explain about serializable interface in java?
Explain in detail about encapsulation with an example?
What is cr keyboard?
What do you mean by constructor?
How to sort an array in java without using sort method?
What are the types of classes in java?
What are the features in java?
10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;
Can we extend immutable class?
What are the steps involved to create a bean?