0% found this document useful (0 votes)
2 views

Core Java Question Bank

The document contains a series of questions related to Java programming concepts, including the use of various keywords, classes, and methods. It covers topics such as exception handling, inheritance, constructors, access specifiers, and GUI components. Additionally, it includes requests for Java programs demonstrating specific functionalities and concepts.

Uploaded by

jesaboc231
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Core Java Question Bank

The document contains a series of questions related to Java programming concepts, including the use of various keywords, classes, and methods. It covers topics such as exception handling, inheritance, constructors, access specifiers, and GUI components. Additionally, it includes requests for Java programs demonstrating specific functionalities and concepts.

Uploaded by

jesaboc231
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. What is use of Javac?

2. Give the name of any two wrapper classes.

3. What is use of 'implements' keyword?

4. List types of constructor.

5. What is use of Array?

6. Give the name of any two listeners.

7. What is exception?

8. What is package?

9. What is use of new operator?

10. A final keyword can not be overriden state true/false and justify.

11. Give the types of access specifiers.

12. Differentiate between Scanner and Buffered Reader class.

13. What is Layout Manager?

14. Write the purpose of this keyword.

15. List any two types of checked Exception.

16. What is listener ? State any two Listeners.

17. What are command line arguments?

18. Differentiate between throw and throws keyword.

19. What is constructor? List its types.

20. Differentiate between class variables and instance variables.

21. Write the purpose of abstract keyword.

22. Which class and interface are at topmost position in Exception hierarchy.

23. Write a java program to delete the files having extension. txt. (Use command line
arguments)

24. Write a java program using swing to accept the details of project (PID, P Name, duration)
from user and display it by clicking on a button.

25. Define an abstract class Shape with abstract method area ( ). Write a java program to
calculate area of Triangle.

26. Write a java program to change the text color of Lable to Red by clicking on a button.

27. What is inheritance? Explain multilevel inheritance with an example.

28. How to create and access package in a program? Explain with an example.

29. 'When constructor of class will be called?' Comment.


30. What is command line argument? Where they are stored in a program.

31. What is Frame? Give its any two methods.

32. Differentiate between method overloading and method overriding.

33. Write any two access specifiers.

34. Define an interface shape with abstract method area( ). Inherit interface shape into the class
traingle. Write a Java Program to calculate area of Triangle.

35. Differentiate between AWT & Swing.

36. Define user define exception zeronumber Exc. Write a Java program to accept a number
from user. If it is zero then throw user define exception "Number is zero" otherwise
calculate the sum of first & last digit of given number. (use Static Keyword).

37. Write a Java program to accept n number from user & store only perfect numbers into array
& display that array.

38. Explain uses of final keyword with example.

39. Define a class Emp with a member Eid and display() method, inherit EmP class into the Emp
Name class, Emp Name class having a member Ename & display ( ) method. Write a Java
program to accept details of employee [Eid, Ename] & display it. (Use super keyword).

40. Write a Java Program to copy the contents form one file into another file. While copying,
change the case of cell the alphabets & replace all the digital by '*'.

You might also like