Java Related Interview Questions
Questions Answers Views Company eMail

What is aggregation and composition ?

Fidelity,

1 5825

Can we add default constructor to Servlet?

Fidelity,

1 6089

How do u pass data from one jsp to another jsp?

Fidelity,

3 14158

what is diff btwn JNDI&JDBC?

CTS, JPMorgan Chase,

6 25305

how to enable conection poole shrinking??

CTS,

2 8977

what is the meaning of java.lang and java.util

6 34625

how can connection with oracle10g with java

IonIdea,

3 10904

if a java file without any source code is valid java file?

SparkTG,

3 8547

why string is not taking as primitive datatypes but we r taking it as a class? why explain it?

HP, SparkTG,

2 5254

What is the difference between the synchronized() & static synchronized()?

HP, SparkTG,

2 7552

which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

HP, SparkTG,

6 9180

how tha garbage collector know that the object will be deleted? on which algorithm the garbage collector works? what is the working principle of garbage collector? How manay types of garbage collectors r there?

HP, SparkTG,

1 6339

what is object type casting? give some example with related?

HP, SparkTG,

2 7638

suppose we have an interface & that interface contains five methods. if a class implements that interface then we have to bound that to give tha definition of all five methods in that class. If we declare that class as abstract then can we call only two methods to give the deinition of that method & i don't want to give the definition of all the methods? can it possible

HP, Wipro,

6 8223

What is connection pooling? What Method and class used for Connection pooling in Java?

2 6854


Un-Answered Questions { Java Related }

Why we are using dependency injection?

166


What will be the default values of all the elements of an array defined as an instance variable?

544


What is a protected class in java?

530


Explain different parts available as part of jvm and describe them in few lines.

528


How does the @requestmapping annotation work?

172






What are the components of java swing?

521


How are commas used in the intialization and iteration parts of a for statement?

581


Why are servlets used?

525


A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

1812


What is the difference between abstraction and encapsulation?

556


What are functional testing and unit testing?

484


Explain the inheritance?

570


How can the nm be made to work with web logic? Explain?

501


Can beans who are involved in transaction have 'passivation' process?

540


How do we call a stored procedure from jdbc?

549