Ten questions for you, perhaps you are very much interested?

1. Why java.awt.event package is to be imported when java.awt is already imported. Does java.awt not include java.awt.event also?
2. How many ways you can do scanf in Java?
3. Can a string be converted to byte, short, int, long, float, double, char and boolean?
4. What is instanceof keyword?
5. Why the methods of an interface should be overridden as public only?
6. What Java constructor return?
7. Can constructor be static or private?
8. How to extend few classes and implements few interfaces to a single class?
9. How to give title to the frame without setTitle() method?
10. Can you do pass-by-reference in Java?

Leave a Comment

Your email address will not be published.