Short but tricky …
1. Checked & Unchecked exception
Unchecked exceptions are any class of exception that extends the RuntimeException class at some point in its inheritance hierarchy. Java compilers do not require that you declare or catch unchecked exceptions in your program code. All Exceptions that extend the RuntimeException class are unchecked exceptions.
Checked exceptions are exceptions that do not extend the RuntimeException class. Checked exceptions must be handled by the programmer to avoid a compile-time error.
2. Use of throws exception
Tells the implementing class to handle the exception thrown.
3. What is finally in exception handling
This is the block of code that is always executed whether exception occurs or not.
4. Vector class
The Vector class implements a growable array of objects.
5. What will happen to the Exception object after exception handling
6. Two types of multi-tasking.
7. Two ways to create the thread Synchronization.
Thread synchronization is done by setting locks on objects. coordinating activities and data access among multiple threads.
Java’s monitor supports two kinds of thread synchronization: mutual exclusion and cooperation . Mutual exclusion, which is supported in the Java virtual machine via object locks, enables multiple threads to independently work on shared data without interfering with each other. Cooperation, which is supported in the Java virtual machine via the wait and notify methods of class Object, enables threads to work together towards a common goal.
8. I/O Filter
A stream filter monitors, transforms, or is some way processes the data as the stream flows through it on the way from a source to a destination
9. How can you retrieve warnings in JDBC
10. Can applet in different page communicate with each other
11. List Four driver Manager
12. State Features of JDBC 2.0
13. Explain about stored procedures
A stored procedure is a group of SQL statements that form a logical unit and perform a particular task. Stored procedures are used to encapsulate a set of operations or queries to execute on a database server. For example, operations on an employee database (hire, fire, promote, lookup) could be coded as stored procedures executed by application code. Stored procedures can be compiled and executed with different parameters and results, and they may have any combination of input, output, and input/output parameters. The procedure will be compiled and stored in the database as a database object that can be called, similar to the way you would call a method.
14. Describe Servlet Life cycle
15. Why do you go for servlet rather than CGI
16. How to generate skeleton & Stub classes
17. Explain lazy activation
In the RMI system, we use lazy activation. Lazy activation defers activating an object until a client’s first use (i.e., the first method invocation).
18. What is meant by Java ?
19. What is meant by a class ?
20. What is meant by a method ?
21. What are the OOPS concepts in Java ?
22. What is meant by encapsulation ? Explain with an example
23. What is meant by inheritance ? Explain with an example
24. What is meant by polymorphism ? Explain with an example
25. Is multiple inheritance allowed in Java ? Why ?
26. What is meant by Java interpreter ?
Bytecode is interpreted by JVM.
27. What is meant by JVM ?
28. What is a compilation unit ?
29. What is meant by identifiers ?
30. What are the different types of modifiers ?
31. What are the access modifiers in Java ?
32. What are the primitive data types in Java ?
33. What is meant by a wrapper class ?
34. What is meant by static variable and static method ?
35. What is meant by Garbage collection ?
36. What is meant by abstract class
37. What is meant by final class, methods and variables ?
38. What is meant by interface ?
40. What is meant by a resource leak ?
41. What is the difference between interface and abstract class ?
42. What is the difference between public private, protected and static
43. What is meant by method overloading ?
44. What is meant by method overriding ?
45. What is singleton class ?
46. What is the difference between an array and a vector ?
47. What is meant by constructor ?
48. What is meant by casting ?
49. What is the difference between final, finally and finalize ?
50. What is meant by packages ?
Filed under: Uncategorized | Leave a Comment »