Programming Interviews Questions
- How can you defined OOP?
- How can you use OOP in your projects/products/applications?
- What is copy constructor?
- How many types of copy constructor are there?
- What shallow copy constructor does/behaves?
- Does C++ support copy constructor?
- Does Java support copy constructor?
- (If the answer to the previous question was correct) Why doesn’t Java support copy constructor?
- What is software life cycle?
C Interview Questions
- What does static variable mean?
- What is a pointer?
- What is a structure?
- What are the differences between structures and arrays?
- In header files whether functions are declared or defined?
- What are the differences between malloc() and calloc()?
- What are macros? What are the advantages and disadvantages?
- Difference between pass by reference and pass by value?
- What is static identifier?
- Where are the auto variables stored?
- Where does global, static, local, register variables, free memory and C Program instructions get stored?
- Difference between arrays and linked list?
Good C interview Questions
- How do you decide which integer type to use?
- What should the 64-bit integer type on new, 64-bit machines be?
- What’s the best way to declare and define global variables?
- What does extern mean in a function declaration?
- What’s the auto keyword good for?
- I can’t seem to define a linked list node which contains a pointer to itself.
- How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
- How can I declare a function that returns a pointer to a function of its own type?
General Java Servelet Questions
- What is the servlet?
- What are the JSP atrributes?
- What is the need of super.init(config) in servlets?
- How to know whether we have to use jsp or servlet in our project?
- Can we call destroy() method on servlets from service method?
- What is the Servlet Interface?
- What is the difference between GenericServlet and HttpServlet?
- How we can check in particular page the session will be alive or not?
- What is the importance of deployment descriptor in servlet?
- When we increase the buffer size in our project using page directive attribute ‘buffer’ what changes we observe?
Newbie Java Questions
- If Runnable interface is better than Thread class, than why we are using Thread class? What is the need for Thread class?
- Why we are calling System.gc() method to garbage collection of unused object, if garbage collection is automatically done in Java by daemon thread in background process with regular interval?
- What is the significance of Marker interface? Why are we using, even though it has no method?
- Why we are always doing rs.next() in first line of while loop in retrieving data from database through result set?