ACADEMIC YEAR 2010-2011(Odd Semester)

ACADEMIC YEAR 2010-2011(Odd Semester)

V.L.B.JANAKIAMMALCOLLEGE OF ENGINEERING & TECHNOLOGY

KOVAIPUDUR, COIMBATORE-42.

ACADEMIC YEAR 2010-2011(Odd Semester)

Name of the staff: K.BHUVANESWARI

Class : III CSE-V SEM

Subject : JAVA PROGRAMMING

TUTORIAL QUESTIONS

UNIT I

  1. List out concepts of object oriented programming.
  2. Give the benefits of oop.
  3. What is java?
  4. With a simple program write the steps to compile and execute java program.
  5. Differentiate java and C++.
  6. Why java is called as fully oop?
  7. Define keyword. Write 5 java reserved keywords.
  8. What is an identifier?
  9. Write the data types in java?
  10. List the conditions how an automatic type conversion will take place?
  11. List the type promotion rules.
  12. Define array. Give examples for types of arrays.
  13. List out and write example for arithmetic operators in java.
  14. List out and write example for arithmetic operators in java.
  15. List out and write example for bitwise operators in java.
  16. List out and write example for relational operators in java.
  17. With a table specify the precedence of java operators.
  18. List out the control statements in java.
  19. Define and give the general form of class.
  20. Define object.
  21. What is method? Give its general form.
  22. What is constructor? Give example
  23. What is parameterized constructor?
  24. What is this keyword?
  25. What is garbage collection in java?How it differs form c++
  26. What is finalize () method?Give its general form.
  27. What is method overloading?Give example
  28. How to overload a constructor?Give example.
  29. What is static keyword?List out the restrictions that a method to be declared as static.
  30. What is final keyword in java? Give its equivalent c++ keyword.
  31. What is nested class? Give its types.
  32. What is inner class?
  33. What is a command line argument? Give example.

UNIT II

  1. What is inheritance?
  2. Write the use of super keyword? Give its syntax.
  3. What is method overriding?
  4. Define Dynamic method dispatch.
  5. Define abstract class. Give example
  6. How final keyword is used to prevent overriding and inheritance?
  7. Define package. Give syntax to declare a package.
  8. Usage of import statement in java?
  9. Define interface. Give its general form.
  10. List out the types of inheritance.
  11. How to implement multiple inheritance in java?
  12. What the use is of extends and implements keyword?
  13. Write the example for extending interfaces?
  14. List out the string operations in java.
  15. How string buffer class differs from string class.
  16. List out the operations that are performed using string buffer class.

UNIT III

  1. What is exception?Give its types.
  2. What is exception handling? Give its general form.
  3. How a divide by zero exception monitored using try and catch blocks.
  4. What is the need of multiple catch statements? give example
  5. Define throw
  6. Define throws. Give its general form.
  7. What is need of finally method in exception handling?
  8. What is checked and unchecked exceptions?
  9. Write a sample program for chained exception.
  10. Write few built in exceptions in java.
  11. Write a sample program for arithmetic exception
  12. Define thread
  13. List out the states of thread.
  14. Define context switch. Write the rules to determine context switch.
  15. Write down the purpose of monitor mechanism.
  16. Write the two ways to create a thread
  17. What is the use of isAlive () and join () method in thread?
  18. What is thread priority? Give the use of setPriority and getPriority methods.
  19. What is synchronization?
  20. What is synchronized statement? Give its general form.
  21. How interthread communication takes place in thread?
  22. Define deadlock.
  23. Define stream. Give its types
  24. What are the abstract classes in byte stream class?
  25. What are the abstract classes in character stream class?
  26. What is the advantage of using system class?
  27. How you read a console input? Give examples.
  28. What is the use of print stream class?
  29. What is file? List out the constructors used for creating a file.
  30. How to find whether the given object is file or directory?
  31. Give a sample program for list () method.
  32. List out the stream classes used for file I/O.
  33. What is serialization?
  34. What is the use of serializable and externalizable interfaces?

UNIT IV

  1. What is collection?
  2. List out the classes in java.util package.
  3. Write the goals of collection framework?
  4. Define List, Set, and Sorted set.
  5. What is the use of iterator and listiterator interface?
  6. What is map?
  7. List out the classes used in map.
  8. What is comparator interface? Give a sample code for it.
  9. What is legacy class?
  10. List out the legacy classes in java.util package.
  11. What is vector? Give its constructors
  12. What is dictionary class?
  13. What is HashTable?
  14. What is Properties?
  15. Write a simple applet program to display a given text.
  16. What is applet? Write its interfaces.
  17. What are the states of applet?
  18. What is the difference between applet and application programming?
  19. List out the methods used for initialization and termination of applets.
  20. Write down the ways to execute an applet.
  21. Write down the syntax for standard applet tag.
  22. Write the methods in AudioClip interface.
  23. What is the use of AppletStub interface?
  24. What is Event and event Sources?
  25. What is event delegation model?
  26. What is listener?
  27. Give some examples for event sources.
  28. What is adapter class?
  29. What is inner class? Give example
  30. Write the use of EventObject class?
  31. Write a simple applet program to listen the key pressed and released by the user.

UNIT V

  1. What is BitSet class? Give its constructors?
  2. Write a simple program to perform and xor operations on bits?
  3. What is string tokenzier? Give its constructors.
  4. Write a program to convert the given word “ Java Programming “ into tokens.
  5. Write a program to display the Date and Time using calendar class?
  6. Write a program to find the given year is leap year or not?
  7. What is Gregorian calendar?
  8. What is the use of Time Zone class?
  9. What is the use of locale class?
  10. What is Random class? Give its constructors?
  11. Using Random class Display a bell like distribution of numbers.
  12. Write a program to display the currency symbol of US and India?