Saturday, May 30, 2015

SRM University IT207 Information Technology Programming in JAVA 2007 Questions 3 rd Semester



S.R.M INSTITUTE OF SCIENCE AND TECHNOLOGY

DEPARTMENT OF INFORMATION TECHNOLOGY

QUESTION BANK

SUBJECT NAME                : PROGRAMMING IN JAVA

SUBJECT CODE                : IT 207

BRANCH                              : II YEAR  IT

UNIT – I

PART – A

1. What is the task of main method in a java program?
2. What is a token? List out the types of tokens supported by java.
3.  Why can’t we use a keyword as a variable name?
4.  Enumerate the rules for creating identifiers in java.
5.  What are the 2 types of Java programs?
6.  What are command line arguments? How are they useful?
7.  List out the 8 basic data types used in java. Give an example.
8.  What is a scope of a variable?
9.  What is type casting?
10. What is a conditional operator or ternary operator?
11. List out the operators available in java.
12. What is type conversion?
13. What is the difference between WHILE and Do-While loop?
14. What is the difference between the keyword ‘break’ & ‘continue’?
15. What is an array?
16. How will you represent a multidimensional array in java?


PART – B

1.Explain in detail about Java Buzzwords (or) Java features (or) characteristics.
2. Explain in detail about Control Structures available in java.


UNIT – II


PART – A

1. What is a class? How does it accomplish data hiding?
2. How do classes help us to organize our programs?
3. What are objects? How are they created from a class?
4. What is a constructor? What are it’s special properties?
5. How do we invoke a constructor?
6. What is meant by constructor overloading?
7. What is meant by method overloading?
8. What is a default constructor?
9. What is a parameterized constructor?
10. List down the access specifiers available in java.
11. How will you invoke a member function?
12. What are the two ways to pass arguments in java?
13. How will you return objects from a member function?
14. What is the use of finalize() method?
15. What is the use of Garbage collector in java.
16. How does String class differ from the string buffer class?
17. List out any 5 methods available in string class
18. List out any 5 methods available in string   buffer class
19. What is the use of valueOf() method?
20. What is the use of toString() method?
21. How will you convert numeric strings to primitive numbers using parsing method?



PART –B


1. Explain method overloading with an example program
2. Explain in detail about constructor overloading with an example
3. Explain about String class, String constructor, and different String methods using a program.
4. Explain about StringBuffer class, StringBuffer constructor, and different StringBuffer methods using a program.
5. Explain in detail about explicitly invoking garbage collector and finalize() method?


UNIT – III

PART – A

1. What is an interface? Give its syntax.
2. How will you extend one interface by other interface?
3. How will you implement the concept of multiple inheritance using interfaces?
4. How does java know that the class we create implements a particular interface?
5. Differentiate class and interface
6. List out the similarities between interfaces and classes.
7. What is inheritance? How does it create new classes?
8. Describe different forms of Inheritance in java with examples.
9. Give the syntax of Single inheritance, Multilevel inheritance, and Hierarchical inheritance.
10. What is a Package?
11. What is the default package in java? Give its syntax.
12. How do we add a class or an interface to a package?
13. How will you protect a class from accidental access?
14. What is an object class?
15. When is a class or method declared as ‘final’?
16. When is a class or method declared as ‘abstract’?
17. How is a superclass constructor or method invoked?
18. When is a member of a class declared as ‘static’?
19. Compare and contrast overloading and overriding methods.
20. Define Polymorphism. What are the different types of polymorphism?
21. What is Dynamic method dispatch or run rime polymorphism?
22. List out the different levels of access protection in java.
23. How do we declare a nested class? Give an example.
24. What is a wrapper class? What are its applications?
25. What is meant by ‘Late binding’?

PART – B

1. How is interface used to support multiple inheritance? Explain with a program.
2. Describe the various levels of access protection available in packages and their implications with an example program.
3. Explain in detail about creating and accessing packages with an example program.
4. Explain ‘Dynamic method dispatch’ with one example program.
5. Describe Method overriding. Explain it with an example.
6. Write short notes on:
i) Upcasting
ii) Downcasting
7. Explain in detail about different types of Inheritance with an example                                program.
8. Compare and contrast Java and C++.
9. Explain in detail about Wrapper classes with an example.
10. Explain about Native methods with suitable examples.

UNIT – IV


PART – A

1. What is an Exception?Draw the hierarchy of Exception.
2. What is the use of try and catch block?Give its syntax.
3. Define ‘Exception handling mechanism’.
4. List out the common types of exceptions in java.
5. Is it essential to catch all types of exceptions?
6. How many catch blocks can be used with one try block?
7. What is the use of ‘finally’ block? Give an example.
8. Why subclass exception should precede the superclass  exception?
9. Define checked and unchecked exception.
10. What is the function of default exception handler?
11. List out the advantage and disadvantage of default exception handler.
12. What is a stream? Draw the hierarchy of stream class.
13. Distinguish between Input stream and reader classes & Output stream and writer classes.
14. What is a Thread? Which Interface must be implemented by all threads?
15. What are the ways to create a thread?
16. Describe the complete life cycle of a Thread.
17. How will you start and stop a thread?
18. How do we set priorities for threads?
19. What is synchronization? When it is used?
20. What is a Deadlock ? What are the ways to avoid deadlock?


PART – B

1. Explain in detail about Exception Handling Mechanism with an example.
2. Explain different ways to create threads with an example.
3. Explain the InputStream class hierarchy with an example program.
4. Explain the OutputStream class hierarchy with an example program.
5. Explain the Reader Stream class hierarchy with an example program.
6. Explain the Writer Stream class hierarchy with an example program.

   








UNIT – V

      PART – A


1. What is an applet?
2. Differentiate local and remote applets.
3. How applets differs from application programs?
4. What are the different ways of  running an applet?
5. Why the applet classes are declared as public?
6. List out the different stages in the life cycle of an applet.
7. Distinguish init() and start() methods.
8. Write a program to set the foreground and background color using applet.
9. What is an Event?
10. Write short notes on Event Handling mechanism.





PART – B

1. Explain in detail about Applet Life cycle.
2. Write a program to demonstrate the Life cycle of an applet.
3. Write a program to perform the following operations by using applet.
(i) Draw a Line,Rectangle
(ii) Draw a oval and fill it
(iii) Draw a polygon
(iv) Set the background and foreground color.
4. Explain in detail about Event handling mechanism with an example.
5. Describe about ‘Key Event’ and ‘Mouse Event’.


Share This
Previous Post
Next Post

B.E Civil Engineer Graduated from Government College of Engineering Tirunelveli in the year 2016. She has developed this website for the welfare of students community not only for students under Anna University Chennai, but for all universities located in India. That's why her website is named as www.IndianUniversityQuestionPapers.com . If you don't find any study materials that you are looking for, you may intimate her through contact page of this website to know her so that it will be useful for providing them as early as possible. You can also share your own study materials and it can be published in this website after verification and reviewing. Thank you!

0 comments:

Pen down your valuable important comments below

Search Everything Here