From Freshers world.com
C- Questions
1. What does static variable mean?
2. What is a pointer?
3. What is a structure?
4. What are the differences between structures and arrays?
5. In header files whether functions are declared or defined?
6. What are the differences between malloc() and calloc()?
7. What are macros? what are its advantages and disadvantages?
8. Difference between pass by reference and pass by value?
9. What is static identifier?
10. Where are the auto variables stored?
11. Where does global, static, local, register variables, free memory and C Program instructions get stored?
12. Difference between arrays and linked list?
13. What are enumerations?
14. Describe about storage allocation and scope of global, extern, static, local and register variables?
15. What are register variables? What are the advantage of using register variables?
16. What is the use of typedef?
17. Can we specify variable field width in a scanf() format string? If possible how?
18. Out of fgets() and gets() which function is safe to use and why?
19. Difference between strdup and strcpy?
20. What is recursion?
21. Differentiate between a for loop and a while loop? What are it uses?
22. What are the different storage classes in C?
23. Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
24. What is difference between Structure and Unions?
25. What the advantages of using Unions?
26. What are the advantages of using pointers in a program?
27. What is the difference between Strings and Arrays?
28. In a header file whether functions are declared or defined?
29. What is a far pointer? where we use it?
30. How will you declare an array of three function pointers where each function receives two ints and returns a float?
31. what is a NULL Pointer? Whether it is same as an uninitialized pointer?
32. What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
33. What does the error 'Null Pointer Assignment' mean and what causes this error?
34. What is near, far and huge pointers? How many bytes are occupied by them?
35. How would you obtain segment and offset addresses from a far address of a memory location?
36. Are the expressions arr and &arr same for an array of integers?
37. Does mentioning the array name gives the base address in all the contexts?
38. Explain one method to process an entire string as one unit?
39. What is the similarity between a Structure, Union and enumeration?
40. Can a Structure contain a Pointer to itself?
41. How can we check whether the contents of two structure variables are same or not?
42. How are Structure passing and returning implemented by the complier?
43. How can we read/write Structures from/to data files?
44. What is the difference between an enumeration and a set of pre-processor # defines?
45. what do the 'c' and 'v' in argc and argv stand for?
46. Are the variables argc and argv are local to main?
47. What is the maximum combined length of command line arguments including the space between adjacent arguments?
48. If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
49. Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
50. What are bit fields? What is the use of bit fields in a Structure declaration?
51. To which numbering system can the binary number 1101100100111100 be easily converted to?
52. Which bit wise operator is suitable for checking whether a particular bit is on or off?
53. Which bit wise operator is suitable for turning off a particular bit in a number?
54. Which bit wise operator is suitable for putting on a particular bit in a number?
55. Which bit wise operator is suitable for checking whether a particular bit is on or off?
56. which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
57. Write a program to compare two strings without using the strcmp() function.
58. Write a program to concatenate two strings.
59. Write a program to interchange 2 variables without using the third one.
60. Write programs for String Reversal & Palindrome check
61. Write a program to find the Factorial of a number
62. Write a program to generate the Fibinocci Series
63. Write a program which employs Recursion
64. Write a program which uses Command Line Arguments
65. Write a program which uses functions like strcmp(), strcpy()? etc
66. What are the advantages of using typedef in a program?
67. How would you dynamically allocate a one-dimensional and two-dimensional array of integers?
68. How can you increase the size of a dynamically allocated array?
69. How can you increase the size of a statically allocated array?
70. When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
71. Which function should be used to free the memory allocated by calloc()?
72. How much maximum can you allocate in a single call to malloc()?
73. Can you dynamically allocate arrays in expanded memory?
74. What is object file? How can you access object file?
75. Which header file should you include if you are to develop a function which can accept variable number of arguments?
76. Can you write a function similar to printf()?
77. How can a called function determine the number of arguments that have been passed to it?
78. Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
79. How do you declare the following:
* An array of three pointers to chars
* An array of three char pointers
* A pointer to array of three chars
* A pointer to function which receives an int pointer and returns a float pointer
* A pointer to a function which receives nothing and returns nothing
80. What do the functions atoi(), itoa() and gcvt() do?
81. Does there exist any other function which can be used to convert an integer or a float to a string?
82. How would you use qsort() function to sort an array of structures?
83. How would you use qsort() function to sort the name stored in an array of pointers to string?
84. How would you use bsearch() function to search a name stored in array of pointers to string?
85. How would you use the functions sin(), pow(), sqrt()?
86. How would you use the functions memcpy(), memset(), memmove()?
87. How would you use the functions fseek(), freed(), fwrite() and ftell()?
88. How would you obtain the current time and difference between two times?
89. How would you use the functions randomize() and random()?
90. How would you implement a substr() function that extracts a sub string from a given string?
91. What is the difference between the functions rand(), random(), srand() and randomize()?
92. What is the difference between the functions memmove() and memcpy()?
93. How do you print a string on the printer?
94. Can you use the function fprintf() to display the output on the screen?
C++- Questions Go Up
1. What is a class?
2. What is an object?
3. What is the difference between an object and a class?
4. What is the difference between class and structure?
5. What is public, protected, private?
6. What are virtual functions?
7. What is friend function?
8. What is a scope resolution operator?
9. What do you mean by inheritance?
10. What is abstraction?
11. What is polymorphism? Explain with an example.
12. What is encapsulation?
13. What do you mean by binding of data and functions?
14. What is function overloading and operator overloading?
15. What is virtual class and friend class?
16. What do you mean by inline function?
17. What do you mean by public, private, protected and friendly?
18. When is an object created and what is its lifetime?
19. What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.
20. Difference between realloc() and free?
21. What is a template?
22. What are the main differences between procedure oriented languages and object oriented languages?
23. What is R T T I ?
24. What are generic functions and generic classes?
25. What is namespace?
26. What is the difference between pass by reference and pass by value?
27. Why do we use virtual functions?
28. What do you mean by pure virtual functions?
29. What are virtual classes?
30. Does c++ support multilevel and multiple inheritance?
31. What are the advantages of inheritance?
32. When is a memory allocated to a class?
33. What is the difference between declaration and definition?
34. What is virtual constructors/destructors?
35. In c++ there is only virtual destructors, no constructors. Why?
36. What is late bound function call and early bound function call? Differentiate.
37. How is exception handling carried out in c++?
38. When will a constructor executed?
39. What is Dynamic Polymorphism?
40. Write a macro for swapping integers.
DATA STRUCTURE QUESTIONS
Go Up
1. What is a data structure?
2. What does abstract data type means?
3. Evaluate the following prefix expression " ++ 26 + - 1324" (Similar types can be asked)
4. Convert the following infix expression to post fix notation ((a+2)*(b+4)) -1 (Similar types can be asked)
5. How is it possible to insert different type of elements in stack?
6. Stack can be described as a pointer. Explain.
7. Write a Binary Search program
8. Write programs for Bubble Sort, Quick sort
9. Explain about the types of linked lists
10. How would you sort a linked list?
11. Write the programs for Linked List (Insertion and Deletion) operations
12. What data structure would you mostly likely see in a non recursive implementation of a recursive algorithm?
13. What do you mean by Base case, Recursive case, Binding Time, Run-Time Stack and Tail Recursion?
14. Explain quick sort and merge sort algorithms and derive the time-constraint relation for these.
15. Explain binary searching, Fibinocci search.
16. What is the maximum total number of nodes in a tree that has N levels? Note that the root is level (zero)
17. How many different binary trees and binary search trees can be made from three nodes that contain the key values 1, 2 & 3?
18. A list is ordered from smaller to largest when a sort is called. Which sort would take the longest time to execute?
19. A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest time to execute?
20. When will you sort an array of pointers to list elements, rather than sorting the elements themselves?
21. The element being searched for is not found in an array of 100 elements. What is the average number of comparisons needed in a sequential search to determine that the element is not there, if the elements are completely unordered?
22. What is the average number of comparisons needed in a sequential search to determine the position of an element in an array of 100 elements, if the elements are ordered from largest to smallest?
23. Which sort show the best average behavior?
24. What is the average number of comparisons in a sequential search?
25. Which data structure is needed to convert infix notations to post fix notations?
26. What do you mean by:
* Syntax Error
* Logical Error
* Runtime Error
How can you correct these errors?
27. In which data structure, elements can be added or removed at either end, but not in the middle?
28. How will inorder, preorder and postorder traversals print the elements of a tree?
29. Parenthesis are never needed in prefix or postfix expressions. Why?
30. Which one is faster? A binary search of an orderd set of elements in an array or a sequential search of the elements.
JAVA QUESTIONS
Go Up
1. What is the difference between an Abstract class and Interface?
2. What is user defined exception?
3. What do you know about the garbage collector?
4. What is the difference between java and c++?
5. In an htm form I have a button which makes us to open another page in 15 seconds. How will you do that?
6. What is the difference between process and threads?
7. What is update method called?
8. Have you ever used HashTable and Directory?
9. What are statements in Java?
10. What is a JAR file?
11. What is JNI?
12. What is the base class for all swing components?
13. What is JFC?
14. What is the difference between AWT and Swing?
15. Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times ? Where three processes are started or three threads are started?
16. How does thread synchronization occur in a monitor?
17. Is there any tag in htm to upload and download files?
18. Why do you canvas?
19. How can you know about drivers and database information ?
20. What is serialization?
21. Can you load the server object dynamically? If so what are the 3 major steps involved in it?
22. What is the layout for toolbar?
23. What is the difference between Grid and Gridbaglayout?
24. How will you add panel to a frame?
25. Where are the card layouts used?
26. What is the corresponding layout for card in swing?
27. What is light weight component?
28. Can you run the product development on all operating systems?
29. What are the benefits if Swing over AWT?
30. How can two threads be made to communicate with each other?
31. What are the files generated after using IDL to java compiler?
32. What is the protocol used by server and client?
33. What is the functionability stubs and skeletons?
34. What is the mapping mechanism used by java to identify IDL language?
35. What is serializable interface?
36. What is the use of interface?
37. Why is java not fully objective oriented?
38. Why does java not support multiple inheritance?
39. What is the root class for all java classes?
40. What is polymorphism?
41. Suppose if we have a variable 'I' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
42. What are virtual functions?
43. Write down how will you create a Binary tree?
44. What are the traverses in binary tree?
45. Write a program for recursive traverse?
46. What are session variable in servlets?
47. What is client server computing?
48. What is constructor and virtual function? Can we call a virtual function in a constructor?
49. Why do we use oops concepts? What is its advantage?
50. What is middleware? What is the functionality of web server?
51. Why is java not 100% pure oops?
52. When will you use an interface and abstract class?
53. What is the exact difference in between Unicast and Multicast object? Where will it be used?
54. What is the main functionality of the remote reference layer?
55. How do you download stubs from Remote place?
56. I want to store more than 10 objects in a remote server? Which methodology will follow?
57. What is the main functionality of Prepared Statement?
58. What is meant by Static query and Dynamic query?
59. What are Normalization Rules? Define Normalization?
60. What is meant by Servelet? What are the parameters of service method?
61. What is meant by Session? Explain something about HTTP Session Class?
62. In a container there are 5 components. I want to display all the component names, how will you do that?
63. Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
64. Tell some latest versions in JAVA related areas?
65. What is meant by class loader? How many types are there? When will we use them?
66. What is meant by flickering?
67. What is meant by distributed application? Why are we using that in our application?
68. What is the functionality of the stub?
69. Explain about version control?
70. Explain 2-tier and 3-tier architecture?
71. What is the role of Web Server?
72. How can we do validation of the fields in a project?
73. What is meant by cookies? Explain the main features?
74. Why java is considered as platform independent?
75. What are the advantages of java over C++?
76. How java can be connected to a database?
77. What is thread?
78. What is difference between Process and Thread?
79. Does java support multiple inheritance? if not, what is the solution?
80. What are abstract classes?
81. What is an interface?
82. What is the difference abstract class and interface?
83. What are adapter classes?
84. what is meant wrapper classes?
85. What are JVM.JRE, J2EE, JNI?
86. What are swing components?
87. What do you mean by light weight and heavy weight components?
88. What is meant by function overloading and function overriding?
89. Does java support function overloading, pointers, structures, unions or linked lists?
90. What do you mean by multithreading?
91. What are byte codes?
92. What are streams?
93. What is user defined exception?
94. In an htm page form I have one button which makes us to open a new page in 15 seconds. How will you do that?
Advanced JAVA questions
1. What is RMI?
2. Explain about RMI Architecture?
3. What are Servelets?
4. What is the use of servlets?
5. Explain RMI Architecture?
6. How will you pass values from htm page to the servlet?
7. How do you load an image in a Servelet?
8. What is purpose of applet programming?
9. How will you communicate between two applets?
10. What IS the difference between Servelets and Applets?
11. How do you communicate in between Applets and Servlets?
12. What is the difference between applet and application?
13. What is the difference between CGI and Servlet?
14. In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify the same information whether it will connect to the database or it will be used previous information?
15. What are the difference between RMI and Servelets?
16. How will you call an Applet using Java Script Function?
17. How can you push data from an Applet to a Servlet?
18. What are 4 drivers available in JDBC? At what situation are four of the drivers used?
19. If you are truncated using JDBC , how can you that how much data is truncated?
20. How will you perform truncation using JDBC?
21. What is the latest version of JDBC? What are the new features added in that?
22. What is the difference between RMI registry and OS Agent?
23. To a server method, the client wants to send a value 20, with this value exceeds to 20 a message should be sent to the client . What will you do for achieving this?
24. How do you invoke a Servelet? What is the difference between doPost method and doGet method?
25. What is difference between the HTTP Servelet and Generic Servelet? Explain about their methods and parameters?
26. Can we use threads in Servelets?
27. Write a program on RMI and JDBC using Stored Procedure?
28. How do you swing an applet?
29. How will you pass parameters in RMI? Why do you serialize?
30. In RMI ,server object is first loaded into memory and then the stub reference is sent to the client. true or false?
31. Suppose server object not loaded into the memory and the client request for it. What will happen?
32. What is the web server used for running the servelets?
33. What is Servlet API used for connecting database?
34. What is bean? Where can it be used?
35. What is the difference between java class and bean?
36. Can we sent objects using Sockets?
37. What is the RMI and Socket?
38. What is CORBA?
39. Can you modify an object in corba?
40. What is RMI and what are the services in RMI?
41. What are the difference between RMI and CORBA?
42. How will you initialize an Applet?
43. What is the order of method invocation in an Applet?
44. What is ODBC and JDBC? How do you connect the Database?
45. What do you mean by Socket Programming?
46. What is difference between Generic Servlet and HTTP Servelet?
47. What you mean by COM and DCOM?
48. what is e-commerce?
Operating System Questions
Go Up
1. What are the basic functions of an operating system?
2. Explain briefly about, processor, assembler, compiler, loader, linker and the functions executed by them.
3. What are the difference phases of software development? Explain briefly?
4. Differentiate between RAM and ROM?
5. What is DRAM? In which form does it store data?
6. What is cache memory?
7. What is hard disk and what is its purpose?
8. Differentiate between Complier and Interpreter?
9. What are the different tasks of Lexical analysis?
10. What are the different functions of Syntax phase, Sheduler?
11. What are the main difference between Micro-Controller and Micro- Processor?
12. Describe different job scheduling in operating systems.
13. What is a Real-Time System ?
14. What is the difference between Hard and Soft real-time systems ?
15. What is a mission critical system ?
16. What is the important aspect of a real-time system ?
17. If two processes which shares same system memory and system clock in a distributed system, What is it called?
18. What is the state of the processor, when a process is waiting for some event to occur?
19. What do you mean by deadlock?
20. Explain the difference between microkernel and macro kernel.
21. Give an example of microkernel.
22. When would you choose bottom up methodology?
23. When would you choose top down methodology?
24. Write a small dc shell script to find number of FF in the design.
25. Why paging is used ?
26. Which is the best page replacement algorithm and Why? How much time is spent usually in each phases and why?
27. Difference between Primary storage and secondary storage?
28. What is multi tasking, multi programming, multi threading?
29. Difference between multi threading and multi tasking?
30. What is software life cycle?
31. Demand paging, page faults, replacement algorithms, thrashing, etc.
32. Explain about paged segmentation and segment paging
33. While running DOS on a PC, which command would be used to duplicate the entire diskette?
MICROPROCESSOR QUESTIONS
Go Up
1. Which type of architecture 8085 has?
2. How many memory locations can be addressed by a microprocessor with 14 address lines?
3. 8085 is how many bit microprocessor?
4. Why is data bus bi-directional?
5. What is the function of accumulator?
6. What is flag, bus?
7. What are tri-state devices and why they are essential in a bus oriented system?
8. Why are program counter and stack pointer 16-bit registers?
9. What does it mean by embedded system?
10. What are the different addressing modes in 8085?
11. What is the difference between MOV and MVI?
12. What are the functions of RIM, SIM, IN?
13. What is the immediate addressing mode?
14. What are the different flags in 8085?
15. What happens during DMA transfer?
16. What do you mean by wait state? What is its need?
17. What is PSW?
18. What is ALE? Explain the functions of ALE in 8085.
19. What is a program counter? What is its use?
20. What is an interrupt?
21. Which line will be activated when an output device require attention from CPU?
ELECTRONICS QUESTIONS
Go Up
1. What is meant by D-FF?
2. What is the basic difference between Latches and Flip flops?
3. What is a multiplexer?
4. How can you convert an SR Flip-flop to a JK Flip-flop?
5. How can you convert an JK Flip-flop to a D Flip-flop?
6. What is Race-around problem? How can you rectify it?
7. Which semiconductor device is used as a voltage regulator and why?
8. What do you mean by an ideal voltage source?
9. What do you mean by zener breakdown and avalanche breakdown?
10. What are the different types of filters?
11. What is the need of filtering ideal response of filters and actual response of filters?
12. What is sampling theorem?
13. What is impulse response?
14. Explain the advantages and disadvantages of FIR filters compared to IIR counterparts.
15. What is CMRR? Explain briefly.
16. What do you mean by half-duplex and full-duplex communication? Explain briefly.
17. Which range of signals are used for terrestrial transmission?
18. What is the need for modulation?
19. Which type of modulation is used in TV transmission?
20. Why we use vestigial side band (VSB-C3F) transmission for picture?
21. When transmitting digital signals is it necessary to transmit some harmonics in addition to fundamental frequency?
22. For asynchronous transmission, is it necessary to supply some synchronizing pulses additionally or to supply or to supply start and stop bit?
23. BPFSK is more efficient than BFSK in presence of noise. Why?
24. What is meant by pre-emphasis and de-emphasis?
25. What do you mean by 3 dB cutoff frequency? Why is it 3 dB, not 1 dB?
26. What do you mean by ASCII, EBCDIC?
Saturday, September 03, 2005
java interview questions
Java Interview Questions
1. What is the diffrence between an Abstract class and Interface ?
2. What is user defined exception ?
3. What do you know about the garbate collector ?
4. What is the difference between C++ & Java ?
5. Explain RMI Architecture?
6. How do you communicate in between Applets & Servlets ?
7. What is the use of Servlets ?
8. What is JDBC? How do you connect to the Database ?
9. In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ?
10. What is the difference between Process and Threads ?
11. What is the difference between RMI & Corba ?
12. What are the services in RMI ?
13. How will you initialize an Applet ?
14. What is the order of method invocation in an Applet ?
15. When is update method called ?
16. How will you pass values from HTML page to the Servlet ?
17. Have you ever used HashTable and Dictionary ?
18. How will you communicate between two Applets ?
19. What are statements in JAVA ?
20. What is JAR file ?
21. What is JNI ?
22. What is the base class for all swing components ?
23. What is JFC ?
24. What is Difference between AWT and Swing ?
25. Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times? Where 3 processes are started or 3 threads are started ?
26. How does thread synchronization occurs inside a monitor ?
27. How will you call an Applet using a Java Script function ?
28. Is there any tag in HTML to upload and download files ?
29. Why do you Canvas ?
30. How can you push data from an Applet to Servlet ?
31. What are 4 drivers available in JDBC ?
32. How you can know about drivers and database information ?
33. If you are truncated using JDBC, How can you know ..that how much data is truncated ?
34. And What situation , each of the 4 drivers used ?
35. How will you perform transaction using JDBC ?
36. In RMI, server object first loaded into the memory and then the stub reference is sent to the client ? or whether a stub reference is directly sent to the client ?
37. Suppose server object is not loaded into the memory, and the client request for it , what will happen?
38. What is serialization ?
39. Can you load the server object dynamically? If so, what are the major 3 steps involved in it ?
40. What is difference RMI registry and OSAgent ?
41. To a server method, the client wants to send a value 20, with this value exceeds to 20,. a message should be sent to the client ? What will you do for achieving for this ?
42. What are the benefits of Swing over AWT ?
43. Where the CardLayout is used ?
44. What is the Layout for ToolBar ?
45. What is the difference between Grid and GridbagLayout ?
46. How will you add panel to a Frame ?
47. What is the corresponding Layout for Card in Swing ?
48. What is light weight component ?
49. Can you run the product development on all operating systems ?
50. What is the webserver used for running the Servlets ?
51. What is Servlet API used for conneting database ?
52. What is bean ? Where it can be used ?
53. What is difference in between Java Class and Bean ?
54. Can we send object using Sockets ?
55. What is the RMI and Socket ?
56. How to communicate 2 threads each other ?
57. What are the files generated after using IDL to Java Compilet ?
58. What is the protocol used by server and client ?
59. Can I modify an object in CORBA ?
60. What is the functionality stubs and skeletons ?
61. What is the mapping mechanism used by Java to identify IDL language ?
62. Diff between Application and Applet ?
63. What is serializable Interface ?
64. What is the difference between CGI and Servlet ?
65. What is the use of Interface ?
66. Why Java is not fully objective oriented ?
67. Why does not support multiple Inheritance ?
68. What it the root class for all Java classes ?
69. What is polymorphism ?
70. Suppose If we have variable ' I ' in run method, If I can create one or more thread each thread will occupy a separate copy or same variable will be shared ?
71. In servlets, we are having a web page that is invoking servlets username and password ? which is cheks in the database ? Suppose the second page also If we want to verify the same information whethe it will connect to the database or it will be used previous information?
72. What are virtual functions ?
73. Write down how will you create a binary Tree ?
74. What are the traverses in Binary Tree ?
75. Write a program for recursive Traverse ?
76. What are session variable in Servlets ?
77. What is client server computing ?
78. What is Constructor and Virtual function? Can we call Virtual funciton in a constructor ?
79. Why we use OOPS concepts? What is its advantage ?
80. What is the middleware ? What is the functionality of Webserver ?
81. Why Java is not 100 % pure OOPS ? ( EcomServer )
82. When we will use an Interface and Abstract class ?
83. What is an RMI?
84. How will you pass parameters in RMI ? Why u serialize?
85. What is the exact difference in between Unicast and Multicast object ? Where we will use ?
86. What is the main functionality of the Remote Reference Layer ?
87. How do you download stubs from a Remote place ?
88. What is the difference in between C++ and Java ? can u explain in detail ?
89. I want to store more than 10 objects in a remote server ? Which methodology will follow ?
90. What is the main functionality of the Prepared Statement ?
91. What is meant by static query and dynamic query ?
92. What are the Normalization Rules ? Define the Normalization ?
93. What is meant by Servelet? What are the parameters of the service method ?
94. What is meant by Session ? Tell me something about HTTPSession Class ?
95. How do you invoke a Servelt? What is the difference in between doPost and doGet methods ?
96. What is the difference in between the HTTPServlet and Generic Servlet ? Expalin their methods ? Tell me their parameter names also ?
97. Have you used threads in Servelet ?
98. Write a program on RMI and JDBC using StoredProcedure ?
99. How do you sing an Applet ?
100. In a Container there are 5 components. I want to display the all the components names, how will you do that one ?
101. Why there are some null interface in java ? What does it mean ? Give me some null interfaces in JAVA ?
102. Tell me the latest versions in JAVA related areas ?
103. What is meant by class loader ? How many types are there? When will we use them ?
104. How do you load an Image in a Servlet ?
105. What is meant by flickering ?
106. What is meant by distributed Application ? Why we are using that in our applications ?
107. What is the functionality of the stub ?
108. Have you used any version control ?
109. What is the latest version of JDBC ? What are the new features are added in that ?
110. Explain 2 tier and 3 -tier Architecture ?
111. What is the role of the webserver ?
112. How have you done validation of the fileds in your project ?
113. What is the main difficulties that you are faced in your project ?
114. What is meant by cookies ? Explain ?
115. Problem faced in your earlier project
116. How OOPS concept is achieved in Java
117. Features for using Java
118. How does Java 2.0 differ from Java 1.0
119. Public static void main – Explain
120. What are command line arguments
121. Explain about the three-tier model
122. Difference between String & StringBuffer
123. Wrapper class. Is String a Wrapper Class
124. What are the restriction for static method
125. Purpose of the file class
126. Default modifier in Interface
127. Difference between Interface & Abstract class
128. Can abstract be declared as Final
129. Can we declare variables inside a method as Final Variables
130. What is the package concept and use of package
131. How can a dead thread be started
132. Difference between Applet & Application
133. Life cycle of the Applet
134. Can Applet have constructors
135. Differeence between canvas class & graphics class
136. Explain about Superclass & subclass
137. Difference between TCP & UDP
138. What is AppletStub
139. Explain Stream Tokenizer
140. What is the difference between two types of threads
141. Checked & Unchecked exception
142. Use of throws exception
143. What is finally in exception handling
144. Vector class
145. What will happen to the Exception object after exception handling
146. Two types of multi-tasking
147. Two ways to create the thread
148. Synchronization
149. I/O Filter
150. How can you retrieve warnings in JDBC
151. Can applet in different page communicate with each other
152. Four driver Manager
153. Features of JDBC 20
154. Explain about stored procedures
155. Servlet Life cycle
156. Why do you go for servlet rather than CGI
157. How to generate skeleton & Stub classes
158. Explain lazy activation
159. Firewalls in RMI
* Q1. How could Java classes direct program messages to the system console, but error messages, say to a file?
A. The class System has a variable out that represents the standard output, and the variable err that represents the standard error device. By default, they both point at the system console. This how the standard output could be re-directed:
Stream st = new Stream(new FileOutputStream("output.txt")); System.setErr(st); System.setOut(st);
* Q2. What's the difference between an interface and an abstract class?
A. An abstract class may contain code in method bodies, which is not allowed in an interface. With abstract classes, you have to inherit your class from it and Java does not allow multiple inheritance. On the other hand, you can implement multiple interfaces in your class.
* Q3. Why would you use a synchronized block vs. synchronized method?
A. Synchronized blocks place locks for shorter periods than synchronized methods.
* Q4. Explain the usage of the keyword transient?
A. This keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero for integers).
* Q5. How can you force garbage collection?
A. You can't force GC, but could request it by calling System.gc(). JVM does not guarantee that GC will be started immediately.
* Q6. How do you know if an explicit object casting is needed?
A. If you assign a superclass object to a variable of a subclass's data type, you need to do explicit casting. For example:
Object a; Customer b; b = (Customer) a;
When you assign a subclass to a variable having a supeclass type, the casting is performed automatically.
* Q7. What's the difference between the methods sleep() and wait()
A. The code sleep(1000); puts thread aside for exactly one second. The code wait(1000), causes a wait of up to one second. A thread could stop waiting earlier if it receives the notify() or notifyAll() call. The method wait() is defined in the class Object and the method sleep() is defined in the class Thread.
* Q8. Can you write a Java class that could be used both as an applet as well as an application?
A. Yes. Add a main() method to the applet.
* Q9. What's the difference between constructors and other methods?
A. Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times.
* Q10. Can you call one constructor from another if a class has multiple constructors
A. Yes. Use this() syntax.
* Q11. Explain the usage of Java packages.
A. This is a way to organize files when a project consists of multiple modules. It also helps resolve naming conflicts when different packages have classes with the same names. Packages access level also allows you to protect data from being used by the non-authorized classes.
* Q12. If a class is located in a package, what do you need to change in the OS environment to be able to use it?
A. You need to add a directory or a jar file that contains the package directories to the CLASSPATH environment variable. Let's say a class Employee belongs to a package com.xyz.hr; and is located in the file c:\dev\com\xyz\hr\Employee.java. In this case, you'd need to add c:\dev to the variable CLASSPATH. If this class contains the method main(), you could test it from a command prompt window as follows:
c:\>java com.xyz.hr.Employee
* Q13. What's the difference between J2SDK 1.5 and J2SDK 5.0?
A.There's no difference, Sun Microsystems just re-branded this version.
* Q14. What would you use to compare two String variables - the operator == or the method equals()?
A. I'd use the method equals() to compare the values of the Strings and the == to check if two variables point at the same instance of a String object.
* Q15. Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written?
A. Yes, it does. The FileNoFoundException is inherited from the IOException. Exception's subclasses have to be caught first.
* Q16. Can an inner class declared inside of a method access local variables of this method?
A. It's possible if these variables are final.
* Q17. What can go wrong if you replace && with & in the following code:
String a=null; if (a!=null && a.length()>10) {...}
A. A single ampersand here would lead to a NullPointerException.
* Q18. What's the main difference between a Vector and an ArrayList
A. Java Vector class is internally synchronized and ArrayList is not.
* Q19. When should the method invokeLater()be used?
A. This method is used to ensure that Swing components are updated through the event-dispatching thread.
* Q20. How can a subclass call a method or a constructor defined in a superclass?
A. Use the following syntax: super.myMethod(); To call a constructor of the superclass, just write super(); in the first line of the subclass's constructor.
* Q21. What's the difference between a queue and a stack?
A. Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule
** Q22. You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces?
A. Sometimes. But your class may be a descendent of another class and in this case the interface is your only option.
** Q23. What comes to mind when you hear about a young generation in Java?
A. Garbage collection.
** Q24. What comes to mind when someone mentions a shallow copy in Java?
A. Object cloning.
** Q25. If you're overriding the method equals() of an object, which other method you might also consider?
A. hashCode()
** Q26. You are planning to do an indexed search in a list of objects. Which of the two Java collections should you use:
ArrayList or LinkedList?
A. ArrayList
** Q27. How would you make a copy of an entire Java object with its state?
A. Have this class implement Cloneable interface and call its method clone().
** Q28. How can you minimize the need of garbage collection and make the memory use more effective?
A. Use object pooling and weak object references.
** Q29. There are two classes: A and B. The class B need to inform a class A when some important event has happened. What Java technique would you use to implement it?
A. If these classes are threads I'd consider notify() or notifyAll(). For regular classes you can use the Observer interface.
** Q30. What access level do you need to specify in the class declaration to ensure that only classes from the same directory can access it?
Questions from allappslabs.com
Q:
What is the difference between an Interface and an Abstract class?
A: An Abstract class declares have at least one instance method that is declared abstract which will be implemented by the subclasses. An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior.
Q:
What is the purpose of garbage collection in Java, and when is it used?
A: The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.
Q:
Describe synchronization in respect to multithreading.
A: With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to significant errors.
Q:
Explain different way of using thread?
A: The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance..the only interface can help.
Q:
What are pass by reference and passby value?
A: Pass By Reference means the passing the address itself rather than passing the value. Passby Value means passing a copy of the value to be passed.
Q:
What is HashMap and Map?
A: Map is Interface and Hashmap is class that implements that.
Q:
Difference between HashMap and HashTable?
A: The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. (HashMap allows null values as key and value whereas Hashtable doesnt allow). HashMap does not guarantee that the order of the map will remain constant over time. HashMap is non synchronized and Hashtable is synchronized.
Q:
Difference between Vector and ArrayList?
A: Vector is synchronized whereas arraylist is not.
Q:
Difference between Swing and Awt?
A: AWT are heavy-weight componenets. Swings are light-weight components. Hence swing works faster than AWT.
Q:
What is the difference between a constructor and a method?
A: A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator.
A method is an ordinary member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operator.
Q:
What is an Iterators?
A: Some of the collection classes provide traversal of their contents via a java.util.Iterator interface. This interface allows you to walk a collection of objects, operating on each object in turn. Remember when using Iterators that they contain a snapshot of the collection at the time the Iterator was obtained; generally it is not advisable to modify the collection itself while traversing an Iterator.
Q:
State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers.
A: public : Public class is visible in other packages, field is visible everywhere (class must be public too)
private : Private variables or methods may be used only by an instance of the same class that declares the variable or method, A private feature may only be accessed by the class that owns the feature.
protected : Is available to all classes in the same package and also available to all subclasses of the class that owns the protected feature.This access is provided even to subclasses that reside in a different package from the class that owns the protected feature.
default :What you get by default ie, without any access modifier (ie, public private or protected).It means that it is visible to all within a particular package.
Q:
What is an abstract class?
A: Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie, you may not call its constructor), abstract class may contain static data. Any class with an abstract method is automatically abstract itself, and must be declared as such.
A class may be declared abstract even if it has no abstract methods. This prevents it from being instantiated.
Q:
What is static in java?
A: Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.
Q:
What is final?
A: A final class can't be extended ie., final class may not be subclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable (is a constant).
Q:
What if the main method is declared as private?
A: The program compiles properly but at runtime it will give "Main method not public." message.
Q:
What if the static modifier is removed from the signature of the main method?
A: Program compiles. But at runtime throws an error "NoSuchMethodError".
Q:
What if I write static public void instead of public static void?
A: Program compiles and runs properly.
Q:
What if I do not provide the String array as the argument to the method?
A: Program compiles but throws a runtime error "NoSuchMethodError".
Q:
What is the first argument of the String array in main method?
A: The String array is empty. It does not have any element. This is unlike C/C++ where the first element by default is the program name.
Q:
If I do not provide any arguments on the command line, then the String array of Main method will be empty of null?
A: It is empty. But not null.
Q:
How can one prove that the array is not null but empty?
A: Print args.length. It will print 0. That means it is empty. But if it would have been null then it would have thrown a NullPointerException on attempting to print args.length.
Q:
What environment variables do I need to set on my machine in order to be able to run Java programs?
A: CLASSPATH and PATH are the two variables.
Q:
Can an application have multiple classes having main method?
A: Yes it is possible. While starting the application we mention the class name to be run. The JVM will look for the Main method only in the class whose name you have mentioned. Hence there is not conflict amongst the multiple classes having main method.
Q:
Can I have multiple main methods in the same class?
A: No the program fails to compile. The compiler says that the main method is already defined in the class.
Q:
Do I need to import java.lang package any time? Why ?
A: No. It is by default loaded internally by the JVM.
Q:
Can I import same package/class twice? Will the JVM load the package twice at runtime?
A: One can import the same package or same class multiple times. Neither compiler nor JVM complains abt it. And the JVM will internally load the class only once no matter how many times you import the same class.
Q:
What are Checked and UnChecked Exception?
A: A checked exception is some subclass of Exception (or Exception itself), excluding class RuntimeException and its subclasses.
Making an exception checked forces client programmers to deal with the possibility that the exception will be thrown. eg, IOException thrown by java.io.FileInputStream's read() method·
Unchecked exceptions are RuntimeException and any of its subclasses. Class Error and its subclasses also are unchecked. With an unchecked exception, however, the compiler doesn't force client programmers either to catch the
exception or declare it in a throws clause. In fact, client programmers may not even know that the exception could be thrown. eg, StringIndexOutOfBoundsException thrown by String's charAt() method· Checked exceptions must be caught at compile time. Runtime exceptions do not need to be. Errors often cannot be.
Q:
What is Overriding?
A: When a class defines a method using the same name, return type, and arguments as a method in its superclass, the method in the class overrides the method in the superclass.
When the method is invoked for an object of the class, it is the new definition of the method that is called, and not the method definition from superclass. Methods may be overridden to be more public, not more private.
Q:
What are different types of inner classes?
A: Nested -level classes, Member classes, Local classes, Anonymous classes
Nested -level classes- If you declare a class within a class and specify the static modifier, the compiler treats the class just like any other -level class.
Any class outside the declaring class accesses the nested class with the declaring class name acting similarly to a package. eg, outer.inner. -level inner classes implicitly have access only to static variables.There can also be inner interfaces. All of these are of the nested -level variety.
Member classes - Member inner classes are just like other member methods and member variables and access to the member class is restricted, just like methods and variables. This means a public member class acts similarly to a nested -level class. The primary difference between member classes and nested -level classes is that member classes have access to the specific instance of the enclosing class.
Local classes - Local classes are like local variables, specific to a block of code. Their visibility is only within the block of their declaration. In order for the class to be useful beyond the declaration block, it would need to implement a
more publicly available interface.Because local classes are not members, the modifiers public, protected, private, and static are not usable.
Anonymous classes - Anonymous inner classes extend local inner classes one level further. As anonymous classes have no name, you cannot provide a constructor.
Q:
Are the imports checked for validity at compile time? e.g. will the code containing an import such as java.lang.ABCD compile?
A: Yes the imports are checked for the semantic validity at compile time. The code containing above line of import will not compile. It will throw an error saying,can not resolve symbol
symbol : class ABCD
location: package io
import java.io.ABCD;
Q:
Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests.*?
A: No you will have to import the subpackages explicitly. Importing com.MyTest.* will import classes in the package MyTest only. It will not import any class in any of it's subpackage.
Q:
What is the difference between declaring a variable and defining a variable?
A: In declaration we just mention the type of the variable and it's name. We do not initialize it. But defining means declaration + initialization.
e.g String s; is just a declaration while String s = new String ("abcd"); Or String s = "abcd"; are both definitions.
Q:
What is the default value of an object reference declared as an instance variable?
A: null unless we define it explicitly.
Q:
Can a level class be private or protected?
A: No. A level class can not be private or protected. It can have either "public" or no modifier. If it does not have a modifier it is supposed to have a default access.If a level class is declared as private the compiler will complain that the "modifier private is not allowed here". This means that a level class can not be private. Same is the case with protected.
Q:
What type of parameter passing does Java support?
A: In Java the arguments are always passed by value .
[ Update from Eki and Jyothish Venu]
Q:
Primitive data types are passed by reference or pass by value?
A: Primitive data types are passed by value.
Q:
Objects are passed by value or by reference?
A: Java only supports pass by value. With objects, the object reference itself is passed by value and so both the original reference and parameter copy both refer to the same object .
[ Update from Eki and Jyothish Venu]
Q:
What is serialization?
A: Serialization is a mechanism by which you can save the state of an object by converting it to a byte stream.
Q:
How do I serialize an object to a file?
A: The class whose instances are to be serialized should implement an interface Serializable. Then you pass the instance to the ObjectOutputStream which is connected to a fileoutputstream. This will save the object to a file.
Q:
Which methods of Serializable interface should I implement?
A: The serializable interface is an empty interface, it does not contain any methods. So we do not implement any methods.
Q:
How can I customize the seralization process? i.e. how can one have a control over the serialization process?
A: Yes it is possible to have control over serialization process. The class should implement Externalizable interface. This interface contains two methods namely readExternal and writeExternal. You should implement these methods and write the logic for customizing the serialization process.
Q:
What is the common usage of serialization?
A: Whenever an object is to be sent over the network, objects need to be serialized. Moreover if the state of an object is to be saved, objects need to be serilazed.
Q:
What is Externalizable interface?
A: Externalizable is an interface which contains two methods readExternal and writeExternal. These methods give you a control over the serialization mechanism. Thus if your class implements this interface, you can customize the serialization process by implementing these methods.
Q:
What happens to the object references included in the object?
A: The serialization mechanism generates an object graph for serialization. Thus it determines whether the included object references are serializable or not. This is a recursive process. Thus when an object is serialized, all the included objects are also serialized alongwith the original obect.
Q:
What one should take care of while serializing the object?
A: One should make sure that all the included objects are also serializable. If any of the objects is not serializable then it throws a NotSerializableException.
Q:
What happens to the static fields of a class during serialization? Are these fields serialized as a part of each serialized object?
A: Yes the static fields do get serialized. If the static field is an object then it must have implemented Serializable interface. The static fields are serialized as a part of every object. But the commonness of the static fields across all the instances is maintained even after serialization.
Q:
Does Java provide any construct to find out the size of an object?
A: No there is not sizeof operator in Java. So there is not direct way to determine the size of an object directly in Java.
Q:
Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests.*?
A: Read the system time just before the method is invoked and immediately after method returns. Take the time difference, which will give you the time taken by a method for execution.
To put it in code...
long start = System.currentTimeMillis ();
method ();
long end = System.currentTimeMillis ();
System.out.println ("Time taken for execution is " + (end - start));
Remember that if the time taken for execution is too small, it might show that it is taking zero milliseconds for execution. Try it on a method which is big enough, in the sense the one which is doing considerable amout of processing.
Q:
What are wrapper classes?
A: Java provides specialized classes corresponding to each of the primitive data types. These are called wrapper classes. They are e.g. Integer, Character, Double etc.
Q:
Why do we need wrapper classes?
A: It is sometimes easier to deal with primitives as objects. Moreover most of the collection classes store objects and not primitive data types. And also the wrapper classes provide many utility methods also. Because of these resons we need wrapper classes. And since we create instances of these classes we can store them in any of the collection classes and pass them around as a collection. Also we can pass them around as method parameters where a method expects an object.
Q:
What are checked exceptions?
A: Checked exception are those which the Java compiler forces you to catch. e.g. IOException are checked Exceptions.
Q:
What are runtime exceptions?
A: Runtime exceptions are those exceptions that are thrown at runtime because of either wrong input data or because of wrong business logic etc. These are not checked by the compiler at compile time.
Q:
What is the difference between error and an exception?
A: An error is an irrecoverable condition occurring at runtime. Such as OutOfMemory error. These JVM errors and you can not repair them at runtime. While exceptions are conditions that occur because of bad input etc. e.g. FileNotFoundException will be thrown if the specified file does not exist. Or a NullPointerException will take place if you try using a null reference. In most of the cases it is possible to recover from an exception (probably by giving user a feedback for entering proper values etc.).
Q:
How to create custom exceptions?
A: Your class should extend class Exception, or some more specific type thereof.
Q:
If I want an object of my class to be thrown as an exception object, what should I do?
A: The class should extend from Exception class. Or you can extend your class from some more precise exception type also.
Q:
If my class already extends from some other class what should I do if I want an instance of my class to be thrown as an exception object?
A: One can not do anytihng in this scenarion. Because Java does not allow multiple inheritance and does not provide any exception interface as well.
Q:
What happens to an unhandled exception?
A: One can not do anytihng in this scenarion. Because Java does not allow multiple inheritance and does not provide any exception interface as well.
Q:
How does an exception permeate through the code?
A: An unhandled exception moves up the method stack in search of a matching When an exception is thrown from a code which is wrapped in a try block followed by one or more catch blocks, a search is made for matching catch block. If a matching type is found then that block will be invoked. If a matching type is not found then the exception moves up the method stack and reaches the caller method. Same procedure is repeated if the caller method is included in a try catch block. This process continues until a catch block handling the appropriate type of exception is found. If it does not find such a block then finally the program terminates.
Q:
What are the different ways to handle exceptions?
A: There are two ways to handle exceptions,
1. By wrapping the desired code in a try block followed by a catch block to catch the exceptions. and
2. List the desired exceptions in the throws clause of the method and let the caller of the method hadle those exceptions.
Q:
Q: What is the basic difference between the 2 approaches to exception handling...1> try catch block and 2> specifying the candidate exceptions in the throws clause?
When should you use which approach?
A: In the first approach as a programmer of the method, you urself are dealing with the exception. This is fine if you are in a best position to decide should be done in case of an exception. Whereas if it is not the responsibility of the method to deal with it's own exceptions, then do not use this approach. In this case use the second approach. In the second approach we are forcing the caller of the method to catch the exceptions, that the method is likely to throw. This is often the approach library creators use. They list the exception in the throws clause and we must catch them. You will find the same approach throughout the java libraries we use.
Q:
Is it necessary that each try block must be followed by a catch block?
A: It is not necessary that each try block must be followed by a catch block. It should be followed by either a catch block OR a finally block. And whatever exceptions are likely to be thrown should be declared in the throws clause of the method.
Q:
If I write return at the end of the try block, will the finally block still execute?
A: Yes even if you write return as the last statement in the try block and no exception occurs, the finally block will execute. The finally block will execute and then the control return.
Q:
If I write System.exit (0); at the end of the try block, will the finally block still execute?
A: No in this case the finally block will not execute because when you say System.exit (0); the control immediately goes out of the program, and thus finally never executes.
Q:
How are Observer and Observable used?
A: Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.
Q:
What is synchronization and why is it important?
A: With respect to multithreading, synchronization is the capability to control
the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object's value. This often leads to significant errors.
Q:
How does Java handle integer overflows and underflows?
A: It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.
Q:
Does garbage collection guarantee that a program will not run out of memory?
A: Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection
Q:
What is the difference between preemptive scheduling and time slicing?
A: Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.
Q:
When a thread is created and started, what is its initial state?
A: A thread is in the ready state after it has been created and started.
[ Received from Venkateswara Manam]
Q:
What is the purpose of finalization?
A: The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.
Q:
What is the Locale class?
A: The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region.
Q:
What is the difference between a while statement and a do statement?
A: A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once.
Q:
What is the difference between static and non-static variables?
A: A static variable is associated with the class as a whole rather than with specific instances of a class. Non-static variables take on unique values with each object instance.
Q:
How are this() and super() used with constructors?
A: Othis() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.
Q:
What are synchronized methods and synchronized statements?
A: Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement.
Q:
What is daemon thread and which method is used to create the daemon thread?
A: Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. setDaemon method is used to create a daemon thread.
Q:
Can applets communicate with each other?
A: At this point in time applets may communicate with other applets running in the same virtual machine. If the applets are of the same class, they can communicate via shared static variables. If the applets are of different classes, then each will need a reference to the same class with static variables. In any case the basic idea is to pass the information back and forth through a static variable.
An applet can also get references to all other applets on the same page using the getApplets() method of java.applet.AppletContext. Once you\'ve got a reference to an applet, you can communicate with it by using its public members.
It is conceivable to have applets in different virtual machines that talk to a server somewhere on the Internet and store any data that needs to be serialized there. Then, when another applet needs this data, it could connect to this same server. Implementing this is non-trivial.
Q:
What are the steps in the JDBC connection?
A: While making a JDBC connection we go through the following steps :
Step 1 : Register the database driver by using :
Class.forName(\" driver classs for that specific database\" );
Step 2 : Now create a database connection using :
Connection con = DriverManager.getConnection(url,username,password);
Step 3: Now Create a query using :
Statement stmt = Connection.Statement(\"select * from TABLE NAME\");
Step 4 : Exceute the query :
stmt.exceuteUpdate();
[ Received from Shri Prakash Kunwar]
Q:
How does a try statement determine which catch clause should be used to handle an exception?
A:
When an exception is thrown within the body of a try statement, the catch clauses of the try statement are examined in the order in which they appear. The first catch clause that is capable of handling the exceptionis executed. The remaining catch clauses are ignored.
Q:
Can an unreachable object become reachable again?
A: An unreachable object may become reachable again. This can happen when the object's finalize() method is invoked and the object performs an operation which causes it to become accessible to reachable objects.
Q:
What method must be implemented by all threads?
A: All tasks must implement the run() method, whether they are a subclass of Thread or implement the Runnable interface.
Q:
What are synchronized methods and synchronized statements?
A: Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement.
Q:
What is Externalizable?
A: Externalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has two methods, writeExternal(ObjectOuput out) and readExternal(ObjectInput in)
Q:
What modifiers are allowed for methods in an Interface?
A: Only public and abstract modifiers are allowed for methods in interfaces.
Q:
What are some alternatives to inheritance?
A: Delegation is an alternative to inheritance. Delegation means that you include an instance of another class as an instance variable, and forward messages to the instance. It is often safer than inheritance because it forces you to think about each message you forward, because the instance is of a known class, rather than a new class, and because it doesn't force you to accept all the methods of the super class: you can provide only the methods that really make sense. On the other hand, it makes you write more code, and it is harder to re-use (because it is not a subclass).
Q:
What does it mean that a method or field is "static"?
A: Static variables and methods are instantiated only once per class. In other words they are class variables, not instance variables. If you change the value of a static variable in a particular object, the value of that variable changes for all instances of that class.
Static methods can be referenced with the name of the class rather than the name of a particular object of the class (though that works too). That's how library methods like System.out.println() work out is a static field in the java.lang.System class.
Q:
What is the difference between preemptive scheduling and time slicing?
A: Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.
Q:
What is the catch or declare rule for method declarations?
A: If a checked exception may be thrown within the body of a method, the method must either catch the exception or declare it in its throws clause.
1. What is the diffrence between an Abstract class and Interface ?
2. What is user defined exception ?
3. What do you know about the garbate collector ?
4. What is the difference between C++ & Java ?
5. Explain RMI Architecture?
6. How do you communicate in between Applets & Servlets ?
7. What is the use of Servlets ?
8. What is JDBC? How do you connect to the Database ?
9. In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ?
10. What is the difference between Process and Threads ?
11. What is the difference between RMI & Corba ?
12. What are the services in RMI ?
13. How will you initialize an Applet ?
14. What is the order of method invocation in an Applet ?
15. When is update method called ?
16. How will you pass values from HTML page to the Servlet ?
17. Have you ever used HashTable and Dictionary ?
18. How will you communicate between two Applets ?
19. What are statements in JAVA ?
20. What is JAR file ?
21. What is JNI ?
22. What is the base class for all swing components ?
23. What is JFC ?
24. What is Difference between AWT and Swing ?
25. Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times? Where 3 processes are started or 3 threads are started ?
26. How does thread synchronization occurs inside a monitor ?
27. How will you call an Applet using a Java Script function ?
28. Is there any tag in HTML to upload and download files ?
29. Why do you Canvas ?
30. How can you push data from an Applet to Servlet ?
31. What are 4 drivers available in JDBC ?
32. How you can know about drivers and database information ?
33. If you are truncated using JDBC, How can you know ..that how much data is truncated ?
34. And What situation , each of the 4 drivers used ?
35. How will you perform transaction using JDBC ?
36. In RMI, server object first loaded into the memory and then the stub reference is sent to the client ? or whether a stub reference is directly sent to the client ?
37. Suppose server object is not loaded into the memory, and the client request for it , what will happen?
38. What is serialization ?
39. Can you load the server object dynamically? If so, what are the major 3 steps involved in it ?
40. What is difference RMI registry and OSAgent ?
41. To a server method, the client wants to send a value 20, with this value exceeds to 20,. a message should be sent to the client ? What will you do for achieving for this ?
42. What are the benefits of Swing over AWT ?
43. Where the CardLayout is used ?
44. What is the Layout for ToolBar ?
45. What is the difference between Grid and GridbagLayout ?
46. How will you add panel to a Frame ?
47. What is the corresponding Layout for Card in Swing ?
48. What is light weight component ?
49. Can you run the product development on all operating systems ?
50. What is the webserver used for running the Servlets ?
51. What is Servlet API used for conneting database ?
52. What is bean ? Where it can be used ?
53. What is difference in between Java Class and Bean ?
54. Can we send object using Sockets ?
55. What is the RMI and Socket ?
56. How to communicate 2 threads each other ?
57. What are the files generated after using IDL to Java Compilet ?
58. What is the protocol used by server and client ?
59. Can I modify an object in CORBA ?
60. What is the functionality stubs and skeletons ?
61. What is the mapping mechanism used by Java to identify IDL language ?
62. Diff between Application and Applet ?
63. What is serializable Interface ?
64. What is the difference between CGI and Servlet ?
65. What is the use of Interface ?
66. Why Java is not fully objective oriented ?
67. Why does not support multiple Inheritance ?
68. What it the root class for all Java classes ?
69. What is polymorphism ?
70. Suppose If we have variable ' I ' in run method, If I can create one or more thread each thread will occupy a separate copy or same variable will be shared ?
71. In servlets, we are having a web page that is invoking servlets username and password ? which is cheks in the database ? Suppose the second page also If we want to verify the same information whethe it will connect to the database or it will be used previous information?
72. What are virtual functions ?
73. Write down how will you create a binary Tree ?
74. What are the traverses in Binary Tree ?
75. Write a program for recursive Traverse ?
76. What are session variable in Servlets ?
77. What is client server computing ?
78. What is Constructor and Virtual function? Can we call Virtual funciton in a constructor ?
79. Why we use OOPS concepts? What is its advantage ?
80. What is the middleware ? What is the functionality of Webserver ?
81. Why Java is not 100 % pure OOPS ? ( EcomServer )
82. When we will use an Interface and Abstract class ?
83. What is an RMI?
84. How will you pass parameters in RMI ? Why u serialize?
85. What is the exact difference in between Unicast and Multicast object ? Where we will use ?
86. What is the main functionality of the Remote Reference Layer ?
87. How do you download stubs from a Remote place ?
88. What is the difference in between C++ and Java ? can u explain in detail ?
89. I want to store more than 10 objects in a remote server ? Which methodology will follow ?
90. What is the main functionality of the Prepared Statement ?
91. What is meant by static query and dynamic query ?
92. What are the Normalization Rules ? Define the Normalization ?
93. What is meant by Servelet? What are the parameters of the service method ?
94. What is meant by Session ? Tell me something about HTTPSession Class ?
95. How do you invoke a Servelt? What is the difference in between doPost and doGet methods ?
96. What is the difference in between the HTTPServlet and Generic Servlet ? Expalin their methods ? Tell me their parameter names also ?
97. Have you used threads in Servelet ?
98. Write a program on RMI and JDBC using StoredProcedure ?
99. How do you sing an Applet ?
100. In a Container there are 5 components. I want to display the all the components names, how will you do that one ?
101. Why there are some null interface in java ? What does it mean ? Give me some null interfaces in JAVA ?
102. Tell me the latest versions in JAVA related areas ?
103. What is meant by class loader ? How many types are there? When will we use them ?
104. How do you load an Image in a Servlet ?
105. What is meant by flickering ?
106. What is meant by distributed Application ? Why we are using that in our applications ?
107. What is the functionality of the stub ?
108. Have you used any version control ?
109. What is the latest version of JDBC ? What are the new features are added in that ?
110. Explain 2 tier and 3 -tier Architecture ?
111. What is the role of the webserver ?
112. How have you done validation of the fileds in your project ?
113. What is the main difficulties that you are faced in your project ?
114. What is meant by cookies ? Explain ?
115. Problem faced in your earlier project
116. How OOPS concept is achieved in Java
117. Features for using Java
118. How does Java 2.0 differ from Java 1.0
119. Public static void main – Explain
120. What are command line arguments
121. Explain about the three-tier model
122. Difference between String & StringBuffer
123. Wrapper class. Is String a Wrapper Class
124. What are the restriction for static method
125. Purpose of the file class
126. Default modifier in Interface
127. Difference between Interface & Abstract class
128. Can abstract be declared as Final
129. Can we declare variables inside a method as Final Variables
130. What is the package concept and use of package
131. How can a dead thread be started
132. Difference between Applet & Application
133. Life cycle of the Applet
134. Can Applet have constructors
135. Differeence between canvas class & graphics class
136. Explain about Superclass & subclass
137. Difference between TCP & UDP
138. What is AppletStub
139. Explain Stream Tokenizer
140. What is the difference between two types of threads
141. Checked & Unchecked exception
142. Use of throws exception
143. What is finally in exception handling
144. Vector class
145. What will happen to the Exception object after exception handling
146. Two types of multi-tasking
147. Two ways to create the thread
148. Synchronization
149. I/O Filter
150. How can you retrieve warnings in JDBC
151. Can applet in different page communicate with each other
152. Four driver Manager
153. Features of JDBC 20
154. Explain about stored procedures
155. Servlet Life cycle
156. Why do you go for servlet rather than CGI
157. How to generate skeleton & Stub classes
158. Explain lazy activation
159. Firewalls in RMI
* Q1. How could Java classes direct program messages to the system console, but error messages, say to a file?
A. The class System has a variable out that represents the standard output, and the variable err that represents the standard error device. By default, they both point at the system console. This how the standard output could be re-directed:
Stream st = new Stream(new FileOutputStream("output.txt")); System.setErr(st); System.setOut(st);
* Q2. What's the difference between an interface and an abstract class?
A. An abstract class may contain code in method bodies, which is not allowed in an interface. With abstract classes, you have to inherit your class from it and Java does not allow multiple inheritance. On the other hand, you can implement multiple interfaces in your class.
* Q3. Why would you use a synchronized block vs. synchronized method?
A. Synchronized blocks place locks for shorter periods than synchronized methods.
* Q4. Explain the usage of the keyword transient?
A. This keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero for integers).
* Q5. How can you force garbage collection?
A. You can't force GC, but could request it by calling System.gc(). JVM does not guarantee that GC will be started immediately.
* Q6. How do you know if an explicit object casting is needed?
A. If you assign a superclass object to a variable of a subclass's data type, you need to do explicit casting. For example:
Object a; Customer b; b = (Customer) a;
When you assign a subclass to a variable having a supeclass type, the casting is performed automatically.
* Q7. What's the difference between the methods sleep() and wait()
A. The code sleep(1000); puts thread aside for exactly one second. The code wait(1000), causes a wait of up to one second. A thread could stop waiting earlier if it receives the notify() or notifyAll() call. The method wait() is defined in the class Object and the method sleep() is defined in the class Thread.
* Q8. Can you write a Java class that could be used both as an applet as well as an application?
A. Yes. Add a main() method to the applet.
* Q9. What's the difference between constructors and other methods?
A. Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times.
* Q10. Can you call one constructor from another if a class has multiple constructors
A. Yes. Use this() syntax.
* Q11. Explain the usage of Java packages.
A. This is a way to organize files when a project consists of multiple modules. It also helps resolve naming conflicts when different packages have classes with the same names. Packages access level also allows you to protect data from being used by the non-authorized classes.
* Q12. If a class is located in a package, what do you need to change in the OS environment to be able to use it?
A. You need to add a directory or a jar file that contains the package directories to the CLASSPATH environment variable. Let's say a class Employee belongs to a package com.xyz.hr; and is located in the file c:\dev\com\xyz\hr\Employee.java. In this case, you'd need to add c:\dev to the variable CLASSPATH. If this class contains the method main(), you could test it from a command prompt window as follows:
c:\>java com.xyz.hr.Employee
* Q13. What's the difference between J2SDK 1.5 and J2SDK 5.0?
A.There's no difference, Sun Microsystems just re-branded this version.
* Q14. What would you use to compare two String variables - the operator == or the method equals()?
A. I'd use the method equals() to compare the values of the Strings and the == to check if two variables point at the same instance of a String object.
* Q15. Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written?
A. Yes, it does. The FileNoFoundException is inherited from the IOException. Exception's subclasses have to be caught first.
* Q16. Can an inner class declared inside of a method access local variables of this method?
A. It's possible if these variables are final.
* Q17. What can go wrong if you replace && with & in the following code:
String a=null; if (a!=null && a.length()>10) {...}
A. A single ampersand here would lead to a NullPointerException.
* Q18. What's the main difference between a Vector and an ArrayList
A. Java Vector class is internally synchronized and ArrayList is not.
* Q19. When should the method invokeLater()be used?
A. This method is used to ensure that Swing components are updated through the event-dispatching thread.
* Q20. How can a subclass call a method or a constructor defined in a superclass?
A. Use the following syntax: super.myMethod(); To call a constructor of the superclass, just write super(); in the first line of the subclass's constructor.
* Q21. What's the difference between a queue and a stack?
A. Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule
** Q22. You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces?
A. Sometimes. But your class may be a descendent of another class and in this case the interface is your only option.
** Q23. What comes to mind when you hear about a young generation in Java?
A. Garbage collection.
** Q24. What comes to mind when someone mentions a shallow copy in Java?
A. Object cloning.
** Q25. If you're overriding the method equals() of an object, which other method you might also consider?
A. hashCode()
** Q26. You are planning to do an indexed search in a list of objects. Which of the two Java collections should you use:
ArrayList or LinkedList?
A. ArrayList
** Q27. How would you make a copy of an entire Java object with its state?
A. Have this class implement Cloneable interface and call its method clone().
** Q28. How can you minimize the need of garbage collection and make the memory use more effective?
A. Use object pooling and weak object references.
** Q29. There are two classes: A and B. The class B need to inform a class A when some important event has happened. What Java technique would you use to implement it?
A. If these classes are threads I'd consider notify() or notifyAll(). For regular classes you can use the Observer interface.
** Q30. What access level do you need to specify in the class declaration to ensure that only classes from the same directory can access it?
Questions from allappslabs.com
Q:
What is the difference between an Interface and an Abstract class?
A: An Abstract class declares have at least one instance method that is declared abstract which will be implemented by the subclasses. An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior.
Q:
What is the purpose of garbage collection in Java, and when is it used?
A: The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.
Q:
Describe synchronization in respect to multithreading.
A: With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to significant errors.
Q:
Explain different way of using thread?
A: The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance..the only interface can help.
Q:
What are pass by reference and passby value?
A: Pass By Reference means the passing the address itself rather than passing the value. Passby Value means passing a copy of the value to be passed.
Q:
What is HashMap and Map?
A: Map is Interface and Hashmap is class that implements that.
Q:
Difference between HashMap and HashTable?
A: The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. (HashMap allows null values as key and value whereas Hashtable doesnt allow). HashMap does not guarantee that the order of the map will remain constant over time. HashMap is non synchronized and Hashtable is synchronized.
Q:
Difference between Vector and ArrayList?
A: Vector is synchronized whereas arraylist is not.
Q:
Difference between Swing and Awt?
A: AWT are heavy-weight componenets. Swings are light-weight components. Hence swing works faster than AWT.
Q:
What is the difference between a constructor and a method?
A: A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator.
A method is an ordinary member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operator.
Q:
What is an Iterators?
A: Some of the collection classes provide traversal of their contents via a java.util.Iterator interface. This interface allows you to walk a collection of objects, operating on each object in turn. Remember when using Iterators that they contain a snapshot of the collection at the time the Iterator was obtained; generally it is not advisable to modify the collection itself while traversing an Iterator.
Q:
State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers.
A: public : Public class is visible in other packages, field is visible everywhere (class must be public too)
private : Private variables or methods may be used only by an instance of the same class that declares the variable or method, A private feature may only be accessed by the class that owns the feature.
protected : Is available to all classes in the same package and also available to all subclasses of the class that owns the protected feature.This access is provided even to subclasses that reside in a different package from the class that owns the protected feature.
default :What you get by default ie, without any access modifier (ie, public private or protected).It means that it is visible to all within a particular package.
Q:
What is an abstract class?
A: Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie, you may not call its constructor), abstract class may contain static data. Any class with an abstract method is automatically abstract itself, and must be declared as such.
A class may be declared abstract even if it has no abstract methods. This prevents it from being instantiated.
Q:
What is static in java?
A: Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.
Q:
What is final?
A: A final class can't be extended ie., final class may not be subclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable (is a constant).
Q:
What if the main method is declared as private?
A: The program compiles properly but at runtime it will give "Main method not public." message.
Q:
What if the static modifier is removed from the signature of the main method?
A: Program compiles. But at runtime throws an error "NoSuchMethodError".
Q:
What if I write static public void instead of public static void?
A: Program compiles and runs properly.
Q:
What if I do not provide the String array as the argument to the method?
A: Program compiles but throws a runtime error "NoSuchMethodError".
Q:
What is the first argument of the String array in main method?
A: The String array is empty. It does not have any element. This is unlike C/C++ where the first element by default is the program name.
Q:
If I do not provide any arguments on the command line, then the String array of Main method will be empty of null?
A: It is empty. But not null.
Q:
How can one prove that the array is not null but empty?
A: Print args.length. It will print 0. That means it is empty. But if it would have been null then it would have thrown a NullPointerException on attempting to print args.length.
Q:
What environment variables do I need to set on my machine in order to be able to run Java programs?
A: CLASSPATH and PATH are the two variables.
Q:
Can an application have multiple classes having main method?
A: Yes it is possible. While starting the application we mention the class name to be run. The JVM will look for the Main method only in the class whose name you have mentioned. Hence there is not conflict amongst the multiple classes having main method.
Q:
Can I have multiple main methods in the same class?
A: No the program fails to compile. The compiler says that the main method is already defined in the class.
Q:
Do I need to import java.lang package any time? Why ?
A: No. It is by default loaded internally by the JVM.
Q:
Can I import same package/class twice? Will the JVM load the package twice at runtime?
A: One can import the same package or same class multiple times. Neither compiler nor JVM complains abt it. And the JVM will internally load the class only once no matter how many times you import the same class.
Q:
What are Checked and UnChecked Exception?
A: A checked exception is some subclass of Exception (or Exception itself), excluding class RuntimeException and its subclasses.
Making an exception checked forces client programmers to deal with the possibility that the exception will be thrown. eg, IOException thrown by java.io.FileInputStream's read() method·
Unchecked exceptions are RuntimeException and any of its subclasses. Class Error and its subclasses also are unchecked. With an unchecked exception, however, the compiler doesn't force client programmers either to catch the
exception or declare it in a throws clause. In fact, client programmers may not even know that the exception could be thrown. eg, StringIndexOutOfBoundsException thrown by String's charAt() method· Checked exceptions must be caught at compile time. Runtime exceptions do not need to be. Errors often cannot be.
Q:
What is Overriding?
A: When a class defines a method using the same name, return type, and arguments as a method in its superclass, the method in the class overrides the method in the superclass.
When the method is invoked for an object of the class, it is the new definition of the method that is called, and not the method definition from superclass. Methods may be overridden to be more public, not more private.
Q:
What are different types of inner classes?
A: Nested -level classes, Member classes, Local classes, Anonymous classes
Nested -level classes- If you declare a class within a class and specify the static modifier, the compiler treats the class just like any other -level class.
Any class outside the declaring class accesses the nested class with the declaring class name acting similarly to a package. eg, outer.inner. -level inner classes implicitly have access only to static variables.There can also be inner interfaces. All of these are of the nested -level variety.
Member classes - Member inner classes are just like other member methods and member variables and access to the member class is restricted, just like methods and variables. This means a public member class acts similarly to a nested -level class. The primary difference between member classes and nested -level classes is that member classes have access to the specific instance of the enclosing class.
Local classes - Local classes are like local variables, specific to a block of code. Their visibility is only within the block of their declaration. In order for the class to be useful beyond the declaration block, it would need to implement a
more publicly available interface.Because local classes are not members, the modifiers public, protected, private, and static are not usable.
Anonymous classes - Anonymous inner classes extend local inner classes one level further. As anonymous classes have no name, you cannot provide a constructor.
Q:
Are the imports checked for validity at compile time? e.g. will the code containing an import such as java.lang.ABCD compile?
A: Yes the imports are checked for the semantic validity at compile time. The code containing above line of import will not compile. It will throw an error saying,can not resolve symbol
symbol : class ABCD
location: package io
import java.io.ABCD;
Q:
Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests.*?
A: No you will have to import the subpackages explicitly. Importing com.MyTest.* will import classes in the package MyTest only. It will not import any class in any of it's subpackage.
Q:
What is the difference between declaring a variable and defining a variable?
A: In declaration we just mention the type of the variable and it's name. We do not initialize it. But defining means declaration + initialization.
e.g String s; is just a declaration while String s = new String ("abcd"); Or String s = "abcd"; are both definitions.
Q:
What is the default value of an object reference declared as an instance variable?
A: null unless we define it explicitly.
Q:
Can a level class be private or protected?
A: No. A level class can not be private or protected. It can have either "public" or no modifier. If it does not have a modifier it is supposed to have a default access.If a level class is declared as private the compiler will complain that the "modifier private is not allowed here". This means that a level class can not be private. Same is the case with protected.
Q:
What type of parameter passing does Java support?
A: In Java the arguments are always passed by value .
[ Update from Eki and Jyothish Venu]
Q:
Primitive data types are passed by reference or pass by value?
A: Primitive data types are passed by value.
Q:
Objects are passed by value or by reference?
A: Java only supports pass by value. With objects, the object reference itself is passed by value and so both the original reference and parameter copy both refer to the same object .
[ Update from Eki and Jyothish Venu]
Q:
What is serialization?
A: Serialization is a mechanism by which you can save the state of an object by converting it to a byte stream.
Q:
How do I serialize an object to a file?
A: The class whose instances are to be serialized should implement an interface Serializable. Then you pass the instance to the ObjectOutputStream which is connected to a fileoutputstream. This will save the object to a file.
Q:
Which methods of Serializable interface should I implement?
A: The serializable interface is an empty interface, it does not contain any methods. So we do not implement any methods.
Q:
How can I customize the seralization process? i.e. how can one have a control over the serialization process?
A: Yes it is possible to have control over serialization process. The class should implement Externalizable interface. This interface contains two methods namely readExternal and writeExternal. You should implement these methods and write the logic for customizing the serialization process.
Q:
What is the common usage of serialization?
A: Whenever an object is to be sent over the network, objects need to be serialized. Moreover if the state of an object is to be saved, objects need to be serilazed.
Q:
What is Externalizable interface?
A: Externalizable is an interface which contains two methods readExternal and writeExternal. These methods give you a control over the serialization mechanism. Thus if your class implements this interface, you can customize the serialization process by implementing these methods.
Q:
What happens to the object references included in the object?
A: The serialization mechanism generates an object graph for serialization. Thus it determines whether the included object references are serializable or not. This is a recursive process. Thus when an object is serialized, all the included objects are also serialized alongwith the original obect.
Q:
What one should take care of while serializing the object?
A: One should make sure that all the included objects are also serializable. If any of the objects is not serializable then it throws a NotSerializableException.
Q:
What happens to the static fields of a class during serialization? Are these fields serialized as a part of each serialized object?
A: Yes the static fields do get serialized. If the static field is an object then it must have implemented Serializable interface. The static fields are serialized as a part of every object. But the commonness of the static fields across all the instances is maintained even after serialization.
Q:
Does Java provide any construct to find out the size of an object?
A: No there is not sizeof operator in Java. So there is not direct way to determine the size of an object directly in Java.
Q:
Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests.*?
A: Read the system time just before the method is invoked and immediately after method returns. Take the time difference, which will give you the time taken by a method for execution.
To put it in code...
long start = System.currentTimeMillis ();
method ();
long end = System.currentTimeMillis ();
System.out.println ("Time taken for execution is " + (end - start));
Remember that if the time taken for execution is too small, it might show that it is taking zero milliseconds for execution. Try it on a method which is big enough, in the sense the one which is doing considerable amout of processing.
Q:
What are wrapper classes?
A: Java provides specialized classes corresponding to each of the primitive data types. These are called wrapper classes. They are e.g. Integer, Character, Double etc.
Q:
Why do we need wrapper classes?
A: It is sometimes easier to deal with primitives as objects. Moreover most of the collection classes store objects and not primitive data types. And also the wrapper classes provide many utility methods also. Because of these resons we need wrapper classes. And since we create instances of these classes we can store them in any of the collection classes and pass them around as a collection. Also we can pass them around as method parameters where a method expects an object.
Q:
What are checked exceptions?
A: Checked exception are those which the Java compiler forces you to catch. e.g. IOException are checked Exceptions.
Q:
What are runtime exceptions?
A: Runtime exceptions are those exceptions that are thrown at runtime because of either wrong input data or because of wrong business logic etc. These are not checked by the compiler at compile time.
Q:
What is the difference between error and an exception?
A: An error is an irrecoverable condition occurring at runtime. Such as OutOfMemory error. These JVM errors and you can not repair them at runtime. While exceptions are conditions that occur because of bad input etc. e.g. FileNotFoundException will be thrown if the specified file does not exist. Or a NullPointerException will take place if you try using a null reference. In most of the cases it is possible to recover from an exception (probably by giving user a feedback for entering proper values etc.).
Q:
How to create custom exceptions?
A: Your class should extend class Exception, or some more specific type thereof.
Q:
If I want an object of my class to be thrown as an exception object, what should I do?
A: The class should extend from Exception class. Or you can extend your class from some more precise exception type also.
Q:
If my class already extends from some other class what should I do if I want an instance of my class to be thrown as an exception object?
A: One can not do anytihng in this scenarion. Because Java does not allow multiple inheritance and does not provide any exception interface as well.
Q:
What happens to an unhandled exception?
A: One can not do anytihng in this scenarion. Because Java does not allow multiple inheritance and does not provide any exception interface as well.
Q:
How does an exception permeate through the code?
A: An unhandled exception moves up the method stack in search of a matching When an exception is thrown from a code which is wrapped in a try block followed by one or more catch blocks, a search is made for matching catch block. If a matching type is found then that block will be invoked. If a matching type is not found then the exception moves up the method stack and reaches the caller method. Same procedure is repeated if the caller method is included in a try catch block. This process continues until a catch block handling the appropriate type of exception is found. If it does not find such a block then finally the program terminates.
Q:
What are the different ways to handle exceptions?
A: There are two ways to handle exceptions,
1. By wrapping the desired code in a try block followed by a catch block to catch the exceptions. and
2. List the desired exceptions in the throws clause of the method and let the caller of the method hadle those exceptions.
Q:
Q: What is the basic difference between the 2 approaches to exception handling...1> try catch block and 2> specifying the candidate exceptions in the throws clause?
When should you use which approach?
A: In the first approach as a programmer of the method, you urself are dealing with the exception. This is fine if you are in a best position to decide should be done in case of an exception. Whereas if it is not the responsibility of the method to deal with it's own exceptions, then do not use this approach. In this case use the second approach. In the second approach we are forcing the caller of the method to catch the exceptions, that the method is likely to throw. This is often the approach library creators use. They list the exception in the throws clause and we must catch them. You will find the same approach throughout the java libraries we use.
Q:
Is it necessary that each try block must be followed by a catch block?
A: It is not necessary that each try block must be followed by a catch block. It should be followed by either a catch block OR a finally block. And whatever exceptions are likely to be thrown should be declared in the throws clause of the method.
Q:
If I write return at the end of the try block, will the finally block still execute?
A: Yes even if you write return as the last statement in the try block and no exception occurs, the finally block will execute. The finally block will execute and then the control return.
Q:
If I write System.exit (0); at the end of the try block, will the finally block still execute?
A: No in this case the finally block will not execute because when you say System.exit (0); the control immediately goes out of the program, and thus finally never executes.
Q:
How are Observer and Observable used?
A: Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.
Q:
What is synchronization and why is it important?
A: With respect to multithreading, synchronization is the capability to control
the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object's value. This often leads to significant errors.
Q:
How does Java handle integer overflows and underflows?
A: It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.
Q:
Does garbage collection guarantee that a program will not run out of memory?
A: Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection
Q:
What is the difference between preemptive scheduling and time slicing?
A: Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.
Q:
When a thread is created and started, what is its initial state?
A: A thread is in the ready state after it has been created and started.
[ Received from Venkateswara Manam]
Q:
What is the purpose of finalization?
A: The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.
Q:
What is the Locale class?
A: The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region.
Q:
What is the difference between a while statement and a do statement?
A: A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once.
Q:
What is the difference between static and non-static variables?
A: A static variable is associated with the class as a whole rather than with specific instances of a class. Non-static variables take on unique values with each object instance.
Q:
How are this() and super() used with constructors?
A: Othis() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.
Q:
What are synchronized methods and synchronized statements?
A: Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement.
Q:
What is daemon thread and which method is used to create the daemon thread?
A: Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. setDaemon method is used to create a daemon thread.
Q:
Can applets communicate with each other?
A: At this point in time applets may communicate with other applets running in the same virtual machine. If the applets are of the same class, they can communicate via shared static variables. If the applets are of different classes, then each will need a reference to the same class with static variables. In any case the basic idea is to pass the information back and forth through a static variable.
An applet can also get references to all other applets on the same page using the getApplets() method of java.applet.AppletContext. Once you\'ve got a reference to an applet, you can communicate with it by using its public members.
It is conceivable to have applets in different virtual machines that talk to a server somewhere on the Internet and store any data that needs to be serialized there. Then, when another applet needs this data, it could connect to this same server. Implementing this is non-trivial.
Q:
What are the steps in the JDBC connection?
A: While making a JDBC connection we go through the following steps :
Step 1 : Register the database driver by using :
Class.forName(\" driver classs for that specific database\" );
Step 2 : Now create a database connection using :
Connection con = DriverManager.getConnection(url,username,password);
Step 3: Now Create a query using :
Statement stmt = Connection.Statement(\"select * from TABLE NAME\");
Step 4 : Exceute the query :
stmt.exceuteUpdate();
[ Received from Shri Prakash Kunwar]
Q:
How does a try statement determine which catch clause should be used to handle an exception?
A:
When an exception is thrown within the body of a try statement, the catch clauses of the try statement are examined in the order in which they appear. The first catch clause that is capable of handling the exceptionis executed. The remaining catch clauses are ignored.
Q:
Can an unreachable object become reachable again?
A: An unreachable object may become reachable again. This can happen when the object's finalize() method is invoked and the object performs an operation which causes it to become accessible to reachable objects.
Q:
What method must be implemented by all threads?
A: All tasks must implement the run() method, whether they are a subclass of Thread or implement the Runnable interface.
Q:
What are synchronized methods and synchronized statements?
A: Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement.
Q:
What is Externalizable?
A: Externalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has two methods, writeExternal(ObjectOuput out) and readExternal(ObjectInput in)
Q:
What modifiers are allowed for methods in an Interface?
A: Only public and abstract modifiers are allowed for methods in interfaces.
Q:
What are some alternatives to inheritance?
A: Delegation is an alternative to inheritance. Delegation means that you include an instance of another class as an instance variable, and forward messages to the instance. It is often safer than inheritance because it forces you to think about each message you forward, because the instance is of a known class, rather than a new class, and because it doesn't force you to accept all the methods of the super class: you can provide only the methods that really make sense. On the other hand, it makes you write more code, and it is harder to re-use (because it is not a subclass).
Q:
What does it mean that a method or field is "static"?
A: Static variables and methods are instantiated only once per class. In other words they are class variables, not instance variables. If you change the value of a static variable in a particular object, the value of that variable changes for all instances of that class.
Static methods can be referenced with the name of the class rather than the name of a particular object of the class (though that works too). That's how library methods like System.out.println() work out is a static field in the java.lang.System class.
Q:
What is the difference between preemptive scheduling and time slicing?
A: Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.
Q:
What is the catch or declare rule for method declarations?
A: If a checked exception may be thrown within the body of a method, the method must either catch the exception or declare it in its throws clause.
Thursday, September 01, 2005
nice links
i happened to get eenaduinfo cool links page its interesting. It has got many interesting hyper links
Monday, August 29, 2005
Free tech magazines
Free magazines for you
All subscriptions are absolutely free even in India! Subscribe to as many magazines as you want.(I am not sure, some might not be)
Here is the general link for International Eligible Magazines
These Technical magazines help you to sharpen your technical skills and also help in getting through Job Interviews. The subscription to these magazines is absolutely free and they will be delivered all the way from USA to your home in India.
We are sure you will find at least 10 magazines suiting your interest out of this huge list!
Free Oracle Magazine
.
Oracle Magazine
Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. ..
Subscribe for Free!
An Introduction to VoIP
.
An Introduction to VoIP
Provides an overview of both call elements - Call control and real time media...
Subscribe for Free!
BioPharm International
.
BioPharm International
Serves as the voice of an experienced mentor to the biopharmaceutical community...
Subscribe for Free!
Broadcast Engineering World Edition
.
Broadcast Engineering World Edition
It is the Journal of Digital Television...
Subscribe for Free!
Chip Scale Review
.
Chip Scale Review
Produced for engineers, R&D, manufacturing specialists, and end-users of semiconductor packaging worldwide...
Subscribe for Free!
Controlled Environments
.
Controlled Environments
Provides technical information on contamination prevention, detection, and control, as well as associated products, to professionals responsible for cleanrooms and other critical environments.
Subscribe for Free!
Corporate Security
.
Corporate Security
Find out more about effective business continuity planning - and how to develop advance procedures for assuring that critical business functions continue as normally as possible in the event of an attack.
Subscribe for Free!
Electronic Design Europe
.
Electronic Design Europe
Provides leading edge technical information to electronics engineers and engineering managers in the European community...
Subscribe for Free!
European Medical Device Manufacturer
.
European Medical Device Manufacturer
Is Europe's leading sourcebook for designers and manufacturers of medical devices...
Subscribe for Free!
Feed Management
.
Feed Management
It is published monthly to present in-depth coverage of feed production technology and animal nutrition...
Subscribe for Free!
Financial Engineering News
.
Financial Engineering News
Is a bimonthly newspaper devoted to reporting on the news, events, people, significant innovations, debates and issues in the field of analytical finance. ..
Subscribe for Free!
Happy About Website Payments with PayPal
.
Happy About Website Payments with PayPal
Answers to Over 40 of the Most Commonly Asked Questions. ..
Subscribe for Free!
Hydrocarbon Processing
.
Hydrocarbon Processing
Is the premier magazine providing job-help information to technical and management personnel in petroleum refining, gas processing, petrochemical/chemical and engineer/constructor companies throughout the world...
Subscribe for Free!
Industrial Engineering News Europe
.
Industrial Engineering News Europe
Is a product news publication reporting on new industrial products, with an emphasis on high-tech sector in manufacturing industries...
Subscribe for Free!
InfoStor
.
InfoStor
Provides storage professionals with the right decision-making information to evaluate, specify and/or integrate enterprise storage products and technologies...
Subscribe for Free!
Laser Focus World
.
Laser Focus World
Optics, electro-optics and optoelectronics. Covers the full spectrum of electro-optics applications...
Subscribe for Free!
Marine Log
.
Marine Log
Dedicated to providing marine industry professionals with the information they need to enable them to design, build and operate vessels, rigs and offshore structures, profitably, safely, legally and in an environmentally responsible manner...
Subscribe for Free!
Microwave Journal
.
Microwave Journal
Provides design, application and product information about devices, components, subsystems and system technology, as well as theory, practical uses, applications and industry news...
Subscribe for Free!
Migrating from Legacy to IP Network Infrastructure in Carrier Networks
.
Migrating from Legacy to IP Network Infrastructure in Carrier Networks
Dedicated to providing marine industry professionals with the information they need to enable them to design, build and operate vessels, rigs and offshore structures, profitably, safely, legally and in an environmentally responsible manner...
Subscribe for Free!
Military & Aerospace Electronics
.
Military & Aerospace Electronics
Published and edited exclusively for engineering managers and engineers involved with military and aerospace electronic systems design, development and production...
Subscribe for Free!
Offshore Engineer
.
Offshore Engineer
Provides the highest quality editorial product across the broad spectrum of offshore technologies... Subscribe for Free!
Subscribe for Free!
Opto & Laser Europe
.
Opto & Laser Europe
Is a technology-transfer magazine for the European optics industry...
Subscribe for Free!
Photonics Spectra
.
Photonics Spectra
Provides business news and technology solutions to readers in the optics, lasers, imaging, fiber optics, electro-optics and photonic component manufacturing...
Subscribe for Free!
Poultry International
.
Poultry International
Brings you every month the latest on poultry processing and marketing topics from breeding through further processing and marketing...
Subscribe for Free!
Produits Equipements Industriels
.
Produits Equipements Industriels
Adresse aux ing�nieurs d'�tudes, de production et aux directions des achats en apportant un condens� des dern�hres nouveaut�s produits...
Subscribe for Free!
Reinforced Plastics
.
Reinforced Plastics
Is the magazine for the international composites industry and its customers...
Subscribe for Free!
Solid State Technology
.
Solid State Technology
The complete source of information for wafer fab engineers, operators, and managers; and semiconductor researchers...
Subscribe for Free!
Total Telecom
.
Total Telecom
Is "The Economist of the communications industry"...
Subscribe for Free!
VoIP Network Design for Service Providers
.
VoIP Network Design for Service Providers
Looks at the challenges of designing a converged network to support VoIP and other applications...
Subscribe for Free!
Water & Wastewater International
.
Water & Wastewater International
Provides practical knowledge and insight that saves time and money for water system operators, wastewater engineers and other professionals in the water and wastewater industry. ..
Subscribe for Free!
World Oil
.
World Oil
Is the leading magazine in oil and gas exploration, drilling and production, providing readers with information on offshore and onshore operations worldwide...
Subscribe for Free!
Applied Clinical Trials
.
Applied Clinical Trials
Provides a forum where pharmaceutical product developers can communicate with the medical researchers who test their new products. ..
Subscribe for Free!
Biophotonics International
.
Biophotonics International
Delivers a unique global insight into the photonic products and techniques that solve problems for professionals in the field of medicine and biotechnology...
Subscribe for Free!
Cabling Installation & Maintenance
.
Cabling Installation & Maintenance
Provides information to industry professionals involved in the purchase, design, installation and maintenance of premises and campus-wide cabling systems. ..
Subscribe for Free!
Clean Rooms
.
Clean Rooms
Services in the design, construction, operation and maintenance of cleanrooms and contamination control systems...
Subscribe for Free!
Convergence: Creating and Capturing Value for the Enterprise
.
Convergence: Creating and Capturing Value for the Enterprise
Enhancing the user experience with flexible systems is vital in today's communication offerings...
Subscribe for Free!
Electronic Publishing
.
Electronic Publishing
Provides industry-related information that printing and publishing professionals need to position their companies in a converging marketplace...
Subscribe for Free!
EuroPhotonics
.
EuroPhotonics
Is designed to provide current and potential end users specific information on photonic products available in Europe and where to purchase them...
Subscribe for Free!
FibreSystems Europe in association with LIGHTWAVE Europe
.
FibreSystems Europe in association with LIGHTWAVE Europe
The leading information source for optical networking technologies...
Subscribe for Free!
Genetic Engineering News
.
Genetic Engineering News
The most widely read bioindustry publication worldwide and has long been acknowledged as the voice of the global biotechnology bioindustry...
Subscribe for Free!
Health-IT World News
.
Health-IT World News
Is the premiere E-news source on technology for healthcare...
Subscribe for Free!
IDC Technology Assessment: PlateSpin
.
IDC Technology Assessment: PlateSpin
Learn about what IDC is saying about the server consolidation market, as well as how PlateSpin products and solutions address your data center needs...
Subscribe for Free!
Industrial Laser Solutions for Manufacturing
.
Industrial Laser Solutions for Manufacturing
The authoritative source of timely information on how lasers are being used and will be used in manufacturing...
Subscribe for Free!
Insight Magazine
.
Insight Magazine
Features in-depth articles and case studies for CXOs to transform their organizations...
Subscribe for Free!
Lightwave
.
Lightwave
Covers all fiber-optic communications technologies worldwide from long-distance transmission through metro applications to enterprise and premises networks...
Subscribe for Free!
Material Handling Management
.
Material Handling Management
Directed to plant and warehouse managers and operations personnel responsible for material handling logistics in manufacturing, warehousing and distribution. ..
Subscribe for Free!
Microwave Product Digest
.
Microwave Product Digest
Is the premier new product magazine devoted to information on components, equipment and subsystems for the RF, microwave and wireless industries. ..
Subscribe for Free!
Migrating from Legacy to IP Network Infrastructure in Enterprise Networks
.
Migrating from Legacy to IP Network Infrastructure in Enterprise Networks
Focuses on the migration of voice over IP in enterprise networks. It covers the drivers for IP followed by a review of the planning process and key implementation issues.
Subscribe for Free!
Nature Methods
.
Nature Methods
Provides techniques for life scientists and chemists.
Subscribe for Free!
Oil, Gas & Petrochem Equipment
.
Oil, Gas & Petrochem Equipment
Announces more new equipment, products, systems, services, and technologies than any other oil industry magazine each month...
Subscribe for Free!
Pig International
.
Pig International
Brings you every month reports on current worldwide topics and latest product & marketing news in the Pig Industry...
Subscribe for Free!
Power Engineering International
.
Power Engineering International
Provides articles on new technologies and installations as well as market reports, news, commentary and analysis.
Subscribe for Free!
Public CIO
.
Public CIO
Provides thought leadership on policies, strategies and best practices to intergovernmental c-level public sector IT executives and their peers.
Subscribe for Free!
Risk & Insurance
.
Risk & Insurance
Is aimed at key decision-makers in the fields of risk management and insurance...
Subscribe for Free!
Technische Revue
.
Technische Revue
F�r Konstrukteure, Entwickler und das technische Management, vorwiegend aus den Bereichen Maschinenbau und Elektrotechnik/Elektronik...
Subscribe for Free!
VoIP over Broadband Access Network
.
VoIP over Broadband Access Network
Compares the key signaling and control protocols available for successful deployment of today's multi-media applications and services...
Subscribe for Free!
Wireless Europe
.
Wireless Europe
Provides a mix of news, in-depth articles, personality profiles and product updates for the cellular industry...
Subscribe for Free!
Asian Oil & Gas
.
Asian Oil & Gas
Ensures you keep fully up-to-date with regular surveys of oil and gas activity in Asia...
Subscribe for Free!
BioProcess International
.
BioProcess International
Provides the global biotherapeutic industry with the most up-to-date peer-reviewed information available today...
Subscribe for Free!
Card Technology
.
Card Technology
Reaches key executives responsible for planning, designing, and implementing applications based on chip cards...
Subscribe for Free!
Compound Semiconductor
.
Compound Semiconductor
Delivers unrivalled coverage of GaAs and III-V integrated circuits, LEDs, telecoms components and wide-bandgap semiconductors...
Subscribe for Free!
Corporate Security as Part of your Overall Risk Management Strategy
.
Corporate Security as Part of your Overall Risk Management Strategy
Presents three critical action items for defining and describing your own risk tolerance, along with ten essential steps for incorporating corporate security as part of an overall risk management strategy. ..
Subscribe for Free!
E&P (Hart's E&P)
.
E&P (Hart's E&P)
Covers the latest data and analysis on exploration & reservoir characterization, well construction, production optimization, marine technology and operations, IT, and industry news & analysis...
Subscribe for Free!
Enterprise Performance Management - A Framework for Optimizing Network and Application Performance
.
Enterprise Performance Management - A Framework for Optimizing Network and Application Performance
Gives IT professionals the processes and information necessary to help ensure continuous IT infrastructure optimization...
Subscribe for Free!
Feed International
.
Feed International
Is a business journal for people involved in the feed industry internationally...
Subscribe for Free!
Filtration+Separation
.
Filtration+Separation
Is the end user magazine for the international filtration and separation industry. ..
Subscribe for Free!
Global Finance
.
Global Finance
Has been providing monthly news and analysis since 1987 about companies and financial institutions that do business around the world.
Subscribe for Free!
HPAC Engineering
.
HPAC Engineering
Is a voice of leadership in the buildings industry, promoting best practices leading to superior building design, construction, operations, maintenance, and performance...
Subscribe for Free!
III-Vs Review
.
III-Vs Review
Is the longest established magazine serving the compound semiconductor industry. ..
Subscribe for Free!
Infosecurity Today
.
Infosecurity Today
Focuses on the practical experiences of IT security professionals, provides in-depth analysis of current tends, independent reporting, and more...
Subscribe for Free!
International Railway Journal
.
International Railway Journal
Provides extensive editorial coverage on emerging trends and news to professionals working in the international railway industry...
Subscribe for Free!
Logistics Today
.
Logistics Today
Builds on 42 years of experience covering the logistics, transportation, distribution, and supply chain market...
Subscribe for Free!
Meat Processing Global
.
Meat Processing Global
Is published bi-monthly to bring the latest meat processing trends and developments outside the USA and Canada Markets...
Subscribe for Free!
Microwaves & RF
.
Microwaves & RF
Dedicated to educating senior-level design engineers and engineering managers who work on all types of RF and microwave systems, subsystems and components...
Subscribe for Free!
Migrating to VoIP and IP-based Messaging Systems By following
.
Migrating to VoIP and IP-based Messaging Systems By following
By following a careful checklist, carriers can gain a competitive advantage that goes far beyond cost considerations, with the eventual goal of establishing a pure IP-based network. ..
Subscribe for Free!
Offshore
.
Offshore
Is the leading monthly information source for offshore oil and gas operations and deep offshore markets...
Subscribe for Free!
Optimize Your Data Center: Featuring IDC and PlateSpin
.
Optimize Your Data Center: Featuring IDC and PlateSpin
Learn how to accelerate server consolidations to virtual machines
Subscribe for Free!
Petfood Industry
.
Petfood Industry
Is a monthly magazine serving individuals and firms involved with manufacturing pet food for the retail markets worldwide...
Subscribe for Free!
Portable Design
.
Portable Design
Is the engineer's resource for portable applications providing design engineers and managers with the latest design approaches, technologies, products and services needed....
Subscribe for Free!
Processing & Control News Europe
.
Processing & Control News Europe
Covers every aspect of process engineering including process and plant design, plant operation & quality control, maintenance, energy and more...
Subscribe for Free!
RadioResource International
.
RadioResource International
Delivers wireless voice and data solutions for mobile and remote mission-critical operations for professionals...
Subscribe for Free!
SMT
.
SMT
Addresses surface mount processes for design engineers working in a variety of end markets...
Subscribe for Free!
Telecommunications Magazine
.
Telecommunications Magazine
Provides insight to service providers via monthly Americas and International editions...
Subscribe for Free!
Voice over Internet Protocol Voice Quality of Service
.
Voice over Internet Protocol Voice Quality of Service
Prevent potential problems causing voice quality degradation...
Subscribe for Free!
VON (Voice on the Net) Magazine
.
VON (Voice on the Net) Magazine
Focuses on VoIP and the migration of telecom & datacom (both wired & wireless) off of the PSTN/circuit switched onto IP...
Subscribe for Free!
World Industrial Reporter
.
World Industrial Reporter
Provides information about new products and processes for manufacturing activities to plant executives in Europe, Africa, the Middle East, Asia and the Pacific...
Subscribe for Free!
All subscriptions are absolutely free even in India! Subscribe to as many magazines as you want.(I am not sure, some might not be)
Here is the general link for International Eligible Magazines
These Technical magazines help you to sharpen your technical skills and also help in getting through Job Interviews. The subscription to these magazines is absolutely free and they will be delivered all the way from USA to your home in India.
We are sure you will find at least 10 magazines suiting your interest out of this huge list!
Free Oracle Magazine
.
Oracle Magazine
Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. ..
Subscribe for Free!
An Introduction to VoIP
.
An Introduction to VoIP
Provides an overview of both call elements - Call control and real time media...
Subscribe for Free!
BioPharm International
.
BioPharm International
Serves as the voice of an experienced mentor to the biopharmaceutical community...
Subscribe for Free!
Broadcast Engineering World Edition
.
Broadcast Engineering World Edition
It is the Journal of Digital Television...
Subscribe for Free!
Chip Scale Review
.
Chip Scale Review
Produced for engineers, R&D, manufacturing specialists, and end-users of semiconductor packaging worldwide...
Subscribe for Free!
Controlled Environments
.
Controlled Environments
Provides technical information on contamination prevention, detection, and control, as well as associated products, to professionals responsible for cleanrooms and other critical environments.
Subscribe for Free!
Corporate Security
.
Corporate Security
Find out more about effective business continuity planning - and how to develop advance procedures for assuring that critical business functions continue as normally as possible in the event of an attack.
Subscribe for Free!
Electronic Design Europe
.
Electronic Design Europe
Provides leading edge technical information to electronics engineers and engineering managers in the European community...
Subscribe for Free!
European Medical Device Manufacturer
.
European Medical Device Manufacturer
Is Europe's leading sourcebook for designers and manufacturers of medical devices...
Subscribe for Free!
Feed Management
.
Feed Management
It is published monthly to present in-depth coverage of feed production technology and animal nutrition...
Subscribe for Free!
Financial Engineering News
.
Financial Engineering News
Is a bimonthly newspaper devoted to reporting on the news, events, people, significant innovations, debates and issues in the field of analytical finance. ..
Subscribe for Free!
Happy About Website Payments with PayPal
.
Happy About Website Payments with PayPal
Answers to Over 40 of the Most Commonly Asked Questions. ..
Subscribe for Free!
Hydrocarbon Processing
.
Hydrocarbon Processing
Is the premier magazine providing job-help information to technical and management personnel in petroleum refining, gas processing, petrochemical/chemical and engineer/constructor companies throughout the world...
Subscribe for Free!
Industrial Engineering News Europe
.
Industrial Engineering News Europe
Is a product news publication reporting on new industrial products, with an emphasis on high-tech sector in manufacturing industries...
Subscribe for Free!
InfoStor
.
InfoStor
Provides storage professionals with the right decision-making information to evaluate, specify and/or integrate enterprise storage products and technologies...
Subscribe for Free!
Laser Focus World
.
Laser Focus World
Optics, electro-optics and optoelectronics. Covers the full spectrum of electro-optics applications...
Subscribe for Free!
Marine Log
.
Marine Log
Dedicated to providing marine industry professionals with the information they need to enable them to design, build and operate vessels, rigs and offshore structures, profitably, safely, legally and in an environmentally responsible manner...
Subscribe for Free!
Microwave Journal
.
Microwave Journal
Provides design, application and product information about devices, components, subsystems and system technology, as well as theory, practical uses, applications and industry news...
Subscribe for Free!
Migrating from Legacy to IP Network Infrastructure in Carrier Networks
.
Migrating from Legacy to IP Network Infrastructure in Carrier Networks
Dedicated to providing marine industry professionals with the information they need to enable them to design, build and operate vessels, rigs and offshore structures, profitably, safely, legally and in an environmentally responsible manner...
Subscribe for Free!
Military & Aerospace Electronics
.
Military & Aerospace Electronics
Published and edited exclusively for engineering managers and engineers involved with military and aerospace electronic systems design, development and production...
Subscribe for Free!
Offshore Engineer
.
Offshore Engineer
Provides the highest quality editorial product across the broad spectrum of offshore technologies... Subscribe for Free!
Subscribe for Free!
Opto & Laser Europe
.
Opto & Laser Europe
Is a technology-transfer magazine for the European optics industry...
Subscribe for Free!
Photonics Spectra
.
Photonics Spectra
Provides business news and technology solutions to readers in the optics, lasers, imaging, fiber optics, electro-optics and photonic component manufacturing...
Subscribe for Free!
Poultry International
.
Poultry International
Brings you every month the latest on poultry processing and marketing topics from breeding through further processing and marketing...
Subscribe for Free!
Produits Equipements Industriels
.
Produits Equipements Industriels
Adresse aux ing�nieurs d'�tudes, de production et aux directions des achats en apportant un condens� des dern�hres nouveaut�s produits...
Subscribe for Free!
Reinforced Plastics
.
Reinforced Plastics
Is the magazine for the international composites industry and its customers...
Subscribe for Free!
Solid State Technology
.
Solid State Technology
The complete source of information for wafer fab engineers, operators, and managers; and semiconductor researchers...
Subscribe for Free!
Total Telecom
.
Total Telecom
Is "The Economist of the communications industry"...
Subscribe for Free!
VoIP Network Design for Service Providers
.
VoIP Network Design for Service Providers
Looks at the challenges of designing a converged network to support VoIP and other applications...
Subscribe for Free!
Water & Wastewater International
.
Water & Wastewater International
Provides practical knowledge and insight that saves time and money for water system operators, wastewater engineers and other professionals in the water and wastewater industry. ..
Subscribe for Free!
World Oil
.
World Oil
Is the leading magazine in oil and gas exploration, drilling and production, providing readers with information on offshore and onshore operations worldwide...
Subscribe for Free!
Applied Clinical Trials
.
Applied Clinical Trials
Provides a forum where pharmaceutical product developers can communicate with the medical researchers who test their new products. ..
Subscribe for Free!
Biophotonics International
.
Biophotonics International
Delivers a unique global insight into the photonic products and techniques that solve problems for professionals in the field of medicine and biotechnology...
Subscribe for Free!
Cabling Installation & Maintenance
.
Cabling Installation & Maintenance
Provides information to industry professionals involved in the purchase, design, installation and maintenance of premises and campus-wide cabling systems. ..
Subscribe for Free!
Clean Rooms
.
Clean Rooms
Services in the design, construction, operation and maintenance of cleanrooms and contamination control systems...
Subscribe for Free!
Convergence: Creating and Capturing Value for the Enterprise
.
Convergence: Creating and Capturing Value for the Enterprise
Enhancing the user experience with flexible systems is vital in today's communication offerings...
Subscribe for Free!
Electronic Publishing
.
Electronic Publishing
Provides industry-related information that printing and publishing professionals need to position their companies in a converging marketplace...
Subscribe for Free!
EuroPhotonics
.
EuroPhotonics
Is designed to provide current and potential end users specific information on photonic products available in Europe and where to purchase them...
Subscribe for Free!
FibreSystems Europe in association with LIGHTWAVE Europe
.
FibreSystems Europe in association with LIGHTWAVE Europe
The leading information source for optical networking technologies...
Subscribe for Free!
Genetic Engineering News
.
Genetic Engineering News
The most widely read bioindustry publication worldwide and has long been acknowledged as the voice of the global biotechnology bioindustry...
Subscribe for Free!
Health-IT World News
.
Health-IT World News
Is the premiere E-news source on technology for healthcare...
Subscribe for Free!
IDC Technology Assessment: PlateSpin
.
IDC Technology Assessment: PlateSpin
Learn about what IDC is saying about the server consolidation market, as well as how PlateSpin products and solutions address your data center needs...
Subscribe for Free!
Industrial Laser Solutions for Manufacturing
.
Industrial Laser Solutions for Manufacturing
The authoritative source of timely information on how lasers are being used and will be used in manufacturing...
Subscribe for Free!
Insight Magazine
.
Insight Magazine
Features in-depth articles and case studies for CXOs to transform their organizations...
Subscribe for Free!
Lightwave
.
Lightwave
Covers all fiber-optic communications technologies worldwide from long-distance transmission through metro applications to enterprise and premises networks...
Subscribe for Free!
Material Handling Management
.
Material Handling Management
Directed to plant and warehouse managers and operations personnel responsible for material handling logistics in manufacturing, warehousing and distribution. ..
Subscribe for Free!
Microwave Product Digest
.
Microwave Product Digest
Is the premier new product magazine devoted to information on components, equipment and subsystems for the RF, microwave and wireless industries. ..
Subscribe for Free!
Migrating from Legacy to IP Network Infrastructure in Enterprise Networks
.
Migrating from Legacy to IP Network Infrastructure in Enterprise Networks
Focuses on the migration of voice over IP in enterprise networks. It covers the drivers for IP followed by a review of the planning process and key implementation issues.
Subscribe for Free!
Nature Methods
.
Nature Methods
Provides techniques for life scientists and chemists.
Subscribe for Free!
Oil, Gas & Petrochem Equipment
.
Oil, Gas & Petrochem Equipment
Announces more new equipment, products, systems, services, and technologies than any other oil industry magazine each month...
Subscribe for Free!
Pig International
.
Pig International
Brings you every month reports on current worldwide topics and latest product & marketing news in the Pig Industry...
Subscribe for Free!
Power Engineering International
.
Power Engineering International
Provides articles on new technologies and installations as well as market reports, news, commentary and analysis.
Subscribe for Free!
Public CIO
.
Public CIO
Provides thought leadership on policies, strategies and best practices to intergovernmental c-level public sector IT executives and their peers.
Subscribe for Free!
Risk & Insurance
.
Risk & Insurance
Is aimed at key decision-makers in the fields of risk management and insurance...
Subscribe for Free!
Technische Revue
.
Technische Revue
F�r Konstrukteure, Entwickler und das technische Management, vorwiegend aus den Bereichen Maschinenbau und Elektrotechnik/Elektronik...
Subscribe for Free!
VoIP over Broadband Access Network
.
VoIP over Broadband Access Network
Compares the key signaling and control protocols available for successful deployment of today's multi-media applications and services...
Subscribe for Free!
Wireless Europe
.
Wireless Europe
Provides a mix of news, in-depth articles, personality profiles and product updates for the cellular industry...
Subscribe for Free!
Asian Oil & Gas
.
Asian Oil & Gas
Ensures you keep fully up-to-date with regular surveys of oil and gas activity in Asia...
Subscribe for Free!
BioProcess International
.
BioProcess International
Provides the global biotherapeutic industry with the most up-to-date peer-reviewed information available today...
Subscribe for Free!
Card Technology
.
Card Technology
Reaches key executives responsible for planning, designing, and implementing applications based on chip cards...
Subscribe for Free!
Compound Semiconductor
.
Compound Semiconductor
Delivers unrivalled coverage of GaAs and III-V integrated circuits, LEDs, telecoms components and wide-bandgap semiconductors...
Subscribe for Free!
Corporate Security as Part of your Overall Risk Management Strategy
.
Corporate Security as Part of your Overall Risk Management Strategy
Presents three critical action items for defining and describing your own risk tolerance, along with ten essential steps for incorporating corporate security as part of an overall risk management strategy. ..
Subscribe for Free!
E&P (Hart's E&P)
.
E&P (Hart's E&P)
Covers the latest data and analysis on exploration & reservoir characterization, well construction, production optimization, marine technology and operations, IT, and industry news & analysis...
Subscribe for Free!
Enterprise Performance Management - A Framework for Optimizing Network and Application Performance
.
Enterprise Performance Management - A Framework for Optimizing Network and Application Performance
Gives IT professionals the processes and information necessary to help ensure continuous IT infrastructure optimization...
Subscribe for Free!
Feed International
.
Feed International
Is a business journal for people involved in the feed industry internationally...
Subscribe for Free!
Filtration+Separation
.
Filtration+Separation
Is the end user magazine for the international filtration and separation industry. ..
Subscribe for Free!
Global Finance
.
Global Finance
Has been providing monthly news and analysis since 1987 about companies and financial institutions that do business around the world.
Subscribe for Free!
HPAC Engineering
.
HPAC Engineering
Is a voice of leadership in the buildings industry, promoting best practices leading to superior building design, construction, operations, maintenance, and performance...
Subscribe for Free!
III-Vs Review
.
III-Vs Review
Is the longest established magazine serving the compound semiconductor industry. ..
Subscribe for Free!
Infosecurity Today
.
Infosecurity Today
Focuses on the practical experiences of IT security professionals, provides in-depth analysis of current tends, independent reporting, and more...
Subscribe for Free!
International Railway Journal
.
International Railway Journal
Provides extensive editorial coverage on emerging trends and news to professionals working in the international railway industry...
Subscribe for Free!
Logistics Today
.
Logistics Today
Builds on 42 years of experience covering the logistics, transportation, distribution, and supply chain market...
Subscribe for Free!
Meat Processing Global
.
Meat Processing Global
Is published bi-monthly to bring the latest meat processing trends and developments outside the USA and Canada Markets...
Subscribe for Free!
Microwaves & RF
.
Microwaves & RF
Dedicated to educating senior-level design engineers and engineering managers who work on all types of RF and microwave systems, subsystems and components...
Subscribe for Free!
Migrating to VoIP and IP-based Messaging Systems By following
.
Migrating to VoIP and IP-based Messaging Systems By following
By following a careful checklist, carriers can gain a competitive advantage that goes far beyond cost considerations, with the eventual goal of establishing a pure IP-based network. ..
Subscribe for Free!
Offshore
.
Offshore
Is the leading monthly information source for offshore oil and gas operations and deep offshore markets...
Subscribe for Free!
Optimize Your Data Center: Featuring IDC and PlateSpin
.
Optimize Your Data Center: Featuring IDC and PlateSpin
Learn how to accelerate server consolidations to virtual machines
Subscribe for Free!
Petfood Industry
.
Petfood Industry
Is a monthly magazine serving individuals and firms involved with manufacturing pet food for the retail markets worldwide...
Subscribe for Free!
Portable Design
.
Portable Design
Is the engineer's resource for portable applications providing design engineers and managers with the latest design approaches, technologies, products and services needed....
Subscribe for Free!
Processing & Control News Europe
.
Processing & Control News Europe
Covers every aspect of process engineering including process and plant design, plant operation & quality control, maintenance, energy and more...
Subscribe for Free!
RadioResource International
.
RadioResource International
Delivers wireless voice and data solutions for mobile and remote mission-critical operations for professionals...
Subscribe for Free!
SMT
.
SMT
Addresses surface mount processes for design engineers working in a variety of end markets...
Subscribe for Free!
Telecommunications Magazine
.
Telecommunications Magazine
Provides insight to service providers via monthly Americas and International editions...
Subscribe for Free!
Voice over Internet Protocol Voice Quality of Service
.
Voice over Internet Protocol Voice Quality of Service
Prevent potential problems causing voice quality degradation...
Subscribe for Free!
VON (Voice on the Net) Magazine
.
VON (Voice on the Net) Magazine
Focuses on VoIP and the migration of telecom & datacom (both wired & wireless) off of the PSTN/circuit switched onto IP...
Subscribe for Free!
World Industrial Reporter
.
World Industrial Reporter
Provides information about new products and processes for manufacturing activities to plant executives in Europe, Africa, the Middle East, Asia and the Pacific...
Subscribe for Free!
Wednesday, August 24, 2005
Google gets to talking
a news item on google talk attracted me out of all news items of google news today at my desktop.
http://googleblog.blogspot.com/

Here is a google guide. I am afraid soon there will be big big manuals on google...
And now google mail is free, no reference i think because this is what i understood from google talk. yet to get a friend online on google talk to TALK.
http://googleblog.blogspot.com/

Here is a google guide. I am afraid soon there will be big big manuals on google...
And now google mail is free, no reference i think because this is what i understood from google talk. yet to get a friend online on google talk to TALK.
sql tips
Here is a repository of many tips of different databases
http://sqlzoo.net/howto/
even the home page looks very interesting
Here is another on sql
http://www.sql-tutorial.net/
http://sqlzoo.net/howto/
even the home page looks very interesting
Here is another on sql
http://www.sql-tutorial.net/
Tuesday, August 23, 2005
beware of clipboard stuff
Friends,
We do copy various data by ctrl+c for pasting elsewhere. This copied
data is stored in clipboard and is accessible from the net by a
combination of Javascripts and ASP.
Just try this:
1) Copy any text by ctrl+c
2) Click the Link
3) You will see the text you copied on the Screen which was
accessed by this web page.
Do not keep sensitive data (like passwords, creditcard numbers, PIN
etc.) in the clipboard while surfing the web. It is extremely easy to
extract the text stored in the clipboard to steal your sensitive
information.
Forward this information to as many friends as you can, to save them
from online frauds !
Thanks,
We do copy various data by ctrl+c for pasting elsewhere. This copied
data is stored in clipboard and is accessible from the net by a
combination of Javascripts and ASP.
Just try this:
1) Copy any text by ctrl+c
2) Click the Link
3) You will see the text you copied on the Screen which was
accessed by this web page.
Do not keep sensitive data (like passwords, creditcard numbers, PIN
etc.) in the clipboard while surfing the web. It is extremely easy to
extract the text stored in the clipboard to steal your sensitive
information.
Forward this information to as many friends as you can, to save them
from online frauds !
Thanks,
Monday, August 22, 2005
Friday, August 19, 2005
Monday, August 08, 2005
java run time polymorphism
to be honest, though i know how this behavior works in practical sense, i never thought it is run time polymorphism. i think next time when i face interview i need not put up a blank face on run time polymorphism.
Here are the details of
run time polymorphism
Here are the details of
run time polymorphism
Thursday, August 04, 2005
Subscribe to:
Posts (Atom)