Vous êtes sur la page 1sur 3

NARAYANA ENGINEERING COLLEGE:: NELLORE &GUDUR

DEPARTMENT OF CSE
TWO MARKS QUESTIONS

S.No Question CO BTL


UNIT-I
1. What is meant by Object Oriented Programming? 1 1
2. What are the OOP’s concepts? 1 1
3. What is meant by abstraction? 1 1
4. What is meant by Encapsulation? 1 1
5. What is Inheritance and Polymorphism? 1 1
6. List out Java Keywords. 1 1
7. W Write about one of the SELECTION statements of Java. 1 1
8. Write the usage of break and continue statements 1 1
9. What is the difference between String and String Buffer? 1 1
10. Explain working of Java Virtual Machine (JVM)? 1 2
11.List List various Literals in Java. 1 1
12. Write about declaration and initialization of variable in java 1 1
13.DeDefine type conversion and casting 1 1
14.Ho Explain comments statements in java? 1 2

15. Compare two String in Java? 1 2


16. Explain how to make String upper case or lower case? 1 2
17. What is the purpose of toString() method in java ? 1 1
18. List out different buzzwords in java 1 1
19. what is an operator?what are the operators in java? 1 1
20. What is data type? What are the data types in java? 1 1
UNIT-II
1. What is a Class? 2 1
2. What is an Object? 2 1
3. What is an Instance? 2 1
4. . write about NEW operator 2 1
5. What are methods and how are they defined? 2 1
6. What are different types of access modifiers (Access specifiers)? 2 1
7. What is an Object and how do you allocate memory to it? 2 1
8. Explain the usage of Java packages. 2 2
9. What is method overloading and method overriding? 2 1
10. What gives java it’s “write once and run anywhere” nature? 2 1
11. What is a constructor and destructor? 2 1
12. What is the difference between constructor and method? 2 1
13. What is Static member classes? 2 1
14. What is Garbage Collection and how to call it explicitly? 2 1
15. Explain how to make an object completely encapsulated? 2 2
16. What is static variable and static method? 2 2
17. What is finalize() method? 2 1
18 What is the difference between this() and super()? 2 1
19 What is meant by Inheritance and what are its advantages? 2 1
20 What is the difference between superclass and subclass? 2 1
UNIT-III
1. What is an exception? 3 1
2. What is an error? 3 1
3. What is superclass of Exception? 3 1
4. What are the advantages of using exception handling? 3 1
5. What are the types of Exceptions in Java 3 1
6. Explain why Errors are Not Checked? 3 2
7. Explain how does a try statement determine which catch clause should be used 3 1
to handle an exception?
8. What is the purpose of the finally clause of a try-catch-finally statement? 3 1
9. What is the difference between checked and Unchecked Exceptions in Java? 3 1
10. What is the difference between exception and error? 3 1
11. What is the catch or declare rule for method declarations? 3 1
12. When is the finally clause of a try-catch-finally statement executed? 3 1
13. What if there is a break or return statement in try block followed by finally 3 1
block?
14. What is the difference between the File and RandomAccessFile classes? 3 1
15. Explain how to create custom exceptions? 3 2
16. Expalin how can we have the try block without catch block? 3 2
17. Explain how does finally block differ from finalize() method? 3 2
18. What is the difference between this() and super()? 3 1
19 What is meant by Inheritance and what are its advantages? 3 1
20 What is the difference between superclass and subclass? 3 1
UNIT-IV
1. Explain different way of using thread? 4 2
2. What are the different states of a thread ? 4 1
3. Why are there separate wait and sleep methods? 4 1
4. What is multithreading and what are the methods for inter-thread 4 1
communication and
what is the class in which these methods are defined?
5. What is synchronization and why is it important? 4 1
6. Explain how does multithreading take place on a computer with a single CPU? 4 2
7. What is the difference between process and thread? 4 1
8. What happens when you invoke a thread's interrupt method while it is sleeping 4 1
or
waiting?
9. Explain how can we create a thread? 4 2
10. What are three ways in which a thread can enter the waiting state? 4 1
11. Explain how to tell what state a thread is in ? 4 2
12. What is synchronized keyword? In what situations you will Use it? 4 1
13. What is serialization? 4 1
14. What does the Serializable interface do? 4 1
15. When you will synchronize a piece of your code? 4 1
16. A Thread is runnable, how does that work? 4 1
17. What is the difference between the paint() and repaint() methods? 4 1
18. What is mean by datagram? 4 1
19. What is thread priority? 4 1
20. What are the different ways in which a thread can enter into waiting state? 4 1
UNIT-V
1. What is the difference between applications and applets? 5 1
2. What containers use a border Layout as their default layout? 5 1
3. What is a layout manager and what are different types of layout managers 5 1
available in java AWT?
4. 5 1
What method is used to specify a container's layout?
5. Define the following terms 5 1
a)Component b)Container
6. Draw the class hierarchy for panel and frame 5 6
7. Define the following terms 5 1
a)Window b)Frame
8. Define textfield and text area 5 1
9. Define label and button 5 1
10. What is menu bar and menus? 5 1
11. What are different choice controls? 5 1
12. Write about scroll bars 5 2
13. Write about text field 5 2
14. Explain about text area 5 2
15 Write about dialog box 5 2
16 Explain about file dialog 5 2
17 Write about check box 5 2
18 Explain about check box group 5 2
19 Explain how to set paint mode in applets 5 2
20 Write about working of fonts in applets 5 2

Vous aimerez peut-être aussi