1. What is the difference between , page directive include, action tag include?

One difference is while using the include page directive, in translation time it is creating two servelts.

But, while using the include action tag, in translation time it is creating only one servlet.

2. Have you used threads in Servelet?

Yes, single thread module

3. IBM Interview Questions in Bangalore?

1.What is single inheritance.
ans:one class is inherited by only other one class
2.What is multiple inheritance.
ans:One class inheriting more than one class at atime.
3.Can java support multiple inheritance.
ans:No
4.what is interface?
ans:Interface has only method declarations but no defn
5.What is differenec between abstract class and interface?
ans:In abstract class some methods may contain definition,but in interface every method should be abstract.
6.How to you prove that abstrace class cannot instantiate directly?
ans:As they dont have constructor they cant be instantiated
7.What is differenece between string and stringbuffer?
ans:Strings are immutable where as string buffer can be modified.
8.What is immutable?
ans:Which cant be changed
9.What is main difference hashmap and hastable?
ans:Hash table is synchronised
10.What is main difference between array list and vector?
ans:Vector is synchronised
11.What is struts framework?
ans:It follows MVC architecture which is used for seperating view,controller,model
12.What is main difference between jsp and servlets.
ans:Jsp s are mainly used for dynamic presenatations where we can write code of design and actual content seperately.mainly coding becomes feasible
13.What is difference between procedure and functions?
ans:Fuctions can return value ,procedures cant return value
14.What is jdbc?
ans:Connecting to DB from java program requires JDBC
15.What are type of drivers?
type1,2,3,4
java suports multithreading

4. Difference between Java Beans & Servlets?

java bean is a reusable component,where as the servlet is the java program which extends the server capability.

5. Just by seeing the signature of the bean how can you specify whether it is a Stateful or Stateless Session Bean?

The create method in a stateless session bean cannot have arguments, and can only have a single method called create(). While create in Stateful bean can have arguments and could be any method starting with create string eg. create<method>(arg1, arg2,...). Although it is not compiler checked but in stateless bean the ejbPassivate() and ejbActivate() methods has to be empty as these functions are never called by EJB container. As conceptually in stateful session bean we might need to store the clients information hence arguments in create<method> are necessary. While in stateless bean we don't, hence no arguments are necessary. It's intutive isn't. I my life I haven't seen such a futuristic server programming tool as EJB.

6. What is the purpose of reserved word using in C#?

A keyword that specifies that types in a particular namespace can be referred to without requiring their full qualified type names.

'using' reserved word always come with namespaces. eg. using systems so because of this useful classes supplied by Microsoft which are contained by System namespace are availble for user.

7. What are the minimal cost and minimal risksolution?

In binary representation there are some states that are believed to be never occurred due to some particular functionality of a given circuit. If zero output is assigned to such states then it is called minimal risk solution as we are resetting the formidable states which could be occurred accidentally. Another approach is to assigned a don?t care to them so it results in lesser logic and hence is called minimal cost solution.

9. Name of at least ten software companies

TCS,
IBM,
INFOSYS,
ORACLE,
SONATA,
SATYAM,
HP,
MOTOROLA,
WIPRO,
CISCO

10. How do you make programs portable on unix and Dos under such circumstances?

constructors are invoked themself when the object is created for a class.there may be any number of constructors which differ by the arguments passed.the distructors are called by us to distroy the constructors.but there is only one distructor.

Download Interview PDF

11. How many logical drives is it possible to fit onto a physical disk?

Maximum of 24 logical drives. The extended partition can only have 23 logical drives.

there can be any number of logical drives

12. Why does microprocessor contain ROM chips?

Microprocessor contain ROM chip because it contain instructions to execute data.

it contain the monitor program which not only include execution instructoin but also interfacing program

13. What is Microprocessor?

Microprocessor is a program-controlled device, which fetches the instructions from memory, decodes and executes the instructions. Most Micro Processor are single- chip devices.

Microprocessor is a program-controlled device, which fetches the instructions from memory, decodes and executes the instructions. Most Micro Processor are single- chip devices.

14. What is object repository?

Object Repository means not a collection of objects.

It's a common repository for all the people (Testing, Developers) for seeing all the data in single Login.

For example QA wants to see 5 testers works then he goes to each person login and see the data.It's very difficult job. For this We can use Object Repository.

15. What is the logical difference b/w Move A TO B and COMPUTE B = A?

In case of Move A TO B it will move whatever the value of a in to b.

it mean it will move numeric, alphanumeric and alphabatic value.

In case of COMPUTE B = A it will assign the vale of a in to b.

but in case of compute only numeric value will be compute.


mov a,b Ans- means whatever the data present on the 'b' it will transfer into 'a'

17. Can 8259 be interfaced with 8085 via the trap pin?

i think yes...so if 8259 gives interrupt then it will be serviced immediately but since inta pin is left hanging the insr bit will never be set...and so whenever ny interrupt occurs depending upon priority itt will be serviced....also the isr address for all interrupts will be same ie 0024H...

Interrupt via trap is nonmaskable,so it will be serviced immediately.

18. Why address bus is unidirectional and data bus is bidirectional?

Because there is no need address transaction between processor and peripheral device but data bus is needed because data has to be read and write

19. Can an RC circuit be used as clock source for 8085?

Yes, it can be used, if an accurate clock frequency is not required. Also, the component cost is low compared to LC or Crystal.

20. In 8085 which is called as High order / Low order Register?

Flag is called as Low order register & Accumulator is called as High order Register.

21. What is the RST for the TRAP?

RST 4.5 is called as TRAP.

22. What is clock frequency for 8085?

3 MHz is the maximum clock frequency for 8085.

23. How many interrupts are there in 8085?

There are 12 interrupts in 8085.

24. Name 5 different addressing modes?

Immediate,
Direct,
Register,
Register indirect,
Implied addressing modes.

Download Interview PDF

25. Which interrupt has the highest priority?

TRAP has the highest priority

there are 2 types of interrupts external and internal.NMI has highest priority among all external interrupts,TRAP has highest priority among all internal interrupts.