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

Java Programming Exam Questions Guide

Uploaded by

v0ashutosh
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

Java Programming Exam Questions Guide

Uploaded by

v0ashutosh
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

SET A — Questions that have appeared MULTIPLE times

UNIT 1 – Java Fundamentals


- What is Java? Why Java is a platform neutral language?
- Describe any two features of Java programming Language.
- Explain features of Java.
- What is JDK? How to build and run java program?
- What is Java?
- Explain in detail the data types in java?
- What is datatype? Explain types of datatypes used in Java.
- Write short note: Define package with all the steps for package creation.
- Write a note on package in Java.
- How to create and access package in java.
UNIT 2 – Classes, Objects & Methods
- What is Super Keyword? Explain the use of super keyword with suitable example.
- What is a method in Java? Explain method overloading with example.
- What are the rules for method overloading and method overriding? Explain it with example.
- Explain method overloading and method overriding in detail.
- What is difference between constructor and method? Explain types of constructors.
- Class and Object — Define class and object with one example.
- What is ‘this’ keyword? Explain with suitable example.
- Define keyword-Static.
- Why the main() method in public static? Can we overload it? Can we run java class without main()
method?
- What is recursion is Java? Write a Java Program to final factorial of a given number using recursion.
- Write a Java program to calculate area of Circle, Triangle & Rectangle. (Use Method Overloading).
- Write a Java program to reverse elements in array.
UNIT 3 – Inheritance, Packages & Collection
- Define Inheritance?
- Write advantages of Inheritance.
- Differentiate between interface and abstract class.
- What is interface? Why they are used in Java?
- What is Collection? Explain Collection framework in details.
- What is collection? Explain collection frame work in details.
- Describe any two features of Java programming Language.
- What is difference between Array and Array List?
- Explain [Link] Package.
- Write a package MCA which has one class student…
- 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.
- Create a package named Series having three different classes to print series (Fibonacci, Cube,
Square).
UNIT 4 – File & Exception Handling
- What is exception? Explain its keyword with example.
- Explain the concept of exception and exception handling.
- What is main difference between exception and error?
- List and explain any 2 in-built exceptions.
- What is the use of Reader and Writer class?
- Readers and Writers class — explain.
- When buffered reader is used?
- Write a Java program to count number of Lines, words and characters from a given file.
- Write a java program to display ASCII values of the characters from a file.
- Write a java program to copy the dates from one file into another file.
- Which are the predefined streams?
UNIT 5 – Applet, AWT, Swing & Events
- What is the use of layout manager?
- What is Layout Manager? Explain any one in detail.
- What is difference between paint ( ) and repaint ( ).
- Write a Java Program using Applet to create login form.
- Write a Java program which accepts student details… (Use AWT)
- Write a java program to display smiley face using applet.
- Write a Java program to design email registration form. (Use swing components)
- Explain in brief delegation event model for handling events.
- What is an event?
SET B — Questions that have appeared ONLY ONCE
UNIT 1 – Java Fundamentals
- What is structure of java program?
- What is access specifiers? List them.
- Why we set environment variable in Java?
- What is use of classpath?
UNIT 2 – Classes, Objects & Methods
- Write a java program to display alternate character from a given string.
- Write a java program to search given name into the array…
- Write a java program to calculate area of Circle, Triangle & Rectangle (Use Method overloading).
- Write a java program to check whether given number is Armstrong or not. (Use static keyword)
- Write a Java program using static method which maintain bank account information about various
customers.
- Write Java program which accepts string from user… user defined exception “Invalid String”.
- Write a Java program to calculate area and volume of cone and cylinder using abstract class Shape.
UNIT 3 – Inheritance, Packages & Collection
- Define multiple inheritance.
- Write any two advantages of Inner Class.
- Vector (short note).
UNIT 4 – File & Exception Handling
- Write a ‘java’ program to copy only non-numeric data from one file to another file.
- Write a Java program to display contents of file in reverse order.
UNIT 5 – Applet, AWT, Swing & Events
- List any two restrictions for applet.
- Create an applet that display x and y position of the cursor movement using mouse and keyboard.
- Write a java program to display multiplication table of a given number into the List box by clicking on
button.
- What does repaint method do?
- Write constructors of Jtabbed panel.

You might also like