0% found this document useful (0 votes)
3 views2 pages

Core Java

The document contains a list of non-coding and coding questions related to Java programming, covering topics such as keywords, file handling, data types, interfaces, exception handling, applets, and event models. It includes 23 non-coding questions that require explanations and examples, as well as 20 coding tasks that involve writing Java programs for various functionalities. The questions aim to assess understanding and practical skills in Java programming concepts and techniques.

Uploaded by

prajaktasbhale
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Core Java

The document contains a list of non-coding and coding questions related to Java programming, covering topics such as keywords, file handling, data types, interfaces, exception handling, applets, and event models. It includes 23 non-coding questions that require explanations and examples, as well as 20 coding tasks that involve writing Java programs for various functionalities. The questions aim to assess understanding and practical skills in Java programming concepts and techniques.

Uploaded by

prajaktasbhale
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Non coding 4 marks

questions
1. What is Super Keyword?Explain the use of super keyword with suitable example.
2. Describe file handling in brief.
3. What is datatype? Explain types of datatypes used in Java.
4. What is interface? Why they are used in Java?
5. Why the main() method in public static? Can we overload it? Can we run java class without
main() method?
6. What is recursion is Java? Write a Java Program to final factorial of a given number using
recursion. Explain method overloading and method overriding in detail.
7. Explain in brief delegation event model for handling events.
8. Write a note on package in Java.
9. What is exception? Expalin its keyword with example.
10. Explain java. util package.
11. What is a method in Java? Explain method overloading with example.
12. How to handle events in applet? Explain with example.
13. Define an abstract class Shape with abstract method area() and volume(). Write a Java
program to calculate area and volume of cone and cylinder.
14. What is Layout Manager?Explain any one in detail.
15. How to create and access package in Java? Explain it with example.
16. Explain anonymous class in detail.
17. Explain features of Java.
18. What is difference between constructor and method? Explain types of constructors.
19. Differentiate between interface and abstract class.
20. Explain the concept of exception and exception handling.
21. Explain try and Catch with example.
22. How a Java program is structured? Explain data types.
23. What is applet? Explain its types.

4 marks Coding questions


1. Write a java program which accepts student details (Sid, Sname, Saddr) from user and display
it on next frame. (Use AWT).
2. Write a package MCA which has one class student. Accept student details through
parameterized constructor. Write display() method to display details. Create a main class
which will use package and calculate total marks and percentage.
3. Write Java program which accepts string from user, if its length is less than five, then throw
user defined exception “Invalid String” otherwise display string in uppercase.
4. Write a Java Program using Applet to create login form.
5. Write a java program to copy the dates from one file into another file.
6. Write a java program to accept’ ‘n’ integers from the user & store them in an ArrayList
Collection. Display the elements of ArrayList collection in reverse order.
7. Write a Java program using AWT to display details of Customer (cust_id, cust_name,
cust_addr) from user and display it on the next frame.
8. Write a Java program to reverse elements in array.
9. Write a Java program using static method which maintain bank account information about
various customers.
10. Write a Java program to display smiley face using applet.[repeated]
11. Write a Java program to Fibonacci series.
12. Write a Java program to display contents of file in reverse order.
13. Write a Java program to display all the perfect numbers between 1 to n.
14. Write a Java program to calculate area of circle, Triangle and Rectangle (Use Method over
loading)
15. Write a java program to accept n integers from the user and store them in on Arraylist
collection. Display elements in reverse order.
16. Write a Java program to count number of digits, spaces and characters from a file.
17. Create an applet that display x and y position of the cursor movement using mouse and
keyboard. (Use appropriate listener)
18. Write a java program to count number of Lines, words and characters from a given file.
19. Write a Java program to design email registration form. (Use swing components)
20. Create a class Teacher (Tid, Tname, Designation, Salary, Subject). Write a java program to
accept 'n' teachers and display who teach Java subject (Use Array of object)

You might also like