We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
QUESTION BANK
Explain€xplain features of JAVA. with example.
2. JVMis platform dependent. Justify
Explain instance of operator.
4. List features of Java. Briefly explain any two.
5. Define following. 1) Byte code 2) Java Virtual Machine
6. Compare Object oriented programming with sequential programming,
7
8
Explain type-conversion in java.
Explain JRE, JOK and JIT
9. Method main is a public static method. Justify
10. What are syntax errors (compile errors), runtime errors, and logic errors?
11, Explain Data Types in detail with example.
12. Write a program to implement the fibonacci series using for loop control statement,
13. What is the difference between while and do-while statement.
14. Write a program that createsand initializes a four integer element array. Calculate and
display the average of its values
15, Create a two dimensional array. instantiate and Initialize it.
16. Explain method overriding with example Write a program which shows an example of
function overriding,
17. Differentiate between Method overloading and Method overriding
18. Explain about arrays, Type of arrays and arrays methods.
19. Explain passing argument by values with example,
20. Differentiate between constructor and method of a class.
21. What do you mean by Overloading? Explain constructor overloading with suitable
example
22. Explain the words “static” and “this” with the help of example
23. When will you declare a method as a static? Explain static method with suitable
example
24, Write a program to create circle class with area function to find area of circle
25. Explain class and object with respect to java
26. List and explain available type of constructors in java with example.
27. How to access object via reference variable? Explain with example.
28. Explain static keyword with example
29. Define constructor. How objects are constructed?
30. Write short notes on access specifiers and modifiers in java.
31. Explain static variable and static method with example
32. What is wrapper class? What is the use of wrapper class in Java?
33. Define object oriented concept:
34, Describe the following method related to String iJreplace(), i)jcompareTo()
35. Differentiate String class and StringBuffer class
36. Describe Inheritance and its type with suitable example
37. Discuss Following with example: (i) Super Keyword (ii) Final Keyword (ii) this keyword
38. What is dynamic method dispatch? Explain with suitable example.39,
40.
41.
42.
43.
44,
45.
46.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
23.
Write a java program to explain runtime polymorphism using interface
What do you mean by Interface? Explain with an example.
Compare interface and abstract class with suitable example
What do you mean by Interface? Compare interface and abstract class with suitable
example
Explain super keyword with example.
Differentiate between final, finally and finalize. What will happen if we make class &
method as final?
Explain abstract class with example.
How can we protect sub class to override the method of super class? Explain with an
example
Explain Primitive data type and wrapper class data types.
Explain ArrayList class.
Explain about Encapsulation, Abstraction.
Explain Exception handling in JAVA.
Discuss exception and error
Explain use of throw in exception handling with example.
when do we use throw statement? Explain it by giving an example
What is the keyword throws used for?
Demonstrate how you can handle different types of exception separately.
Explain use of finally in exception handling with an example
What is a daemon thread?
Explain use of following methods with suitable example isAlive(), join(), getPriority()
st out inbuilt java exceptions
Write a program using BufferedinputStream,
BufferedOutputStream, FileOutoutStream to copy content of one file Test1.txt into
another file Test2.txt
What is a Java Package and which package is imported by default?
How we can create a package?
Explain usage of class FileInputStream and FileOutputStream by giving an example
Create a class called Student. Write a student manager program to manipulate
‘the student information from files by using the BufferedReader & BufferedWriter
The abstract vegetable class has three subclasses named Potato, Brinjal and
hierarchy. Declare one instance variable of type String that indicates the color of
a vegetable. Crete and display instances of these objects. Override the toString()
method of object to return a string with the name of vegetable & its colour
Write a program to rise and handle divide by zero exception.
Explain the exception hierarchy. Explain how to throw, catch and handle Exceptions.
What is a stream? List down the types of steam.
Explain usage of class FileInputStream and FileOutputStream by giving an example
Write short notes about /0 stream classes.
Explain File class with its methods.
Explain multithreading in java using example
What are the ways in which you can create a thread? Explain with example
InputStream74,
75.
76.
77.
78,
79,
Explain Thread Life Cycle in detail
Explain the use of join() with an example.
Explain the use of sleep() with an example,
List down the thread methods & explain any two.
Explain Thread Synchronization with example.
What is constraint? Explain constraints on generalization sets