Java Related Interview Questions
Questions Answers Views Company eMail

I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

514

What is meant by anonymous class?

586

How objects are stored in java?

544

Can a class have multiple constructors?

531

Describe different states of a thread.

571

What are the various access specifiers for java classes?

541

Can we call the constructor of a class more than once for an object?

619

Is string a data type in java?

587

I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

632

Can we have two methods in a class with the same name?

576

In the below example, what will be the output?

588

What is the default access specifier for variables and methods of a class?

562

What are the two ways of implementing multi-threading in java?

1 806

What's the difference between comparison done by equals method and == operator?

539

How infinite loop is declared?

527


Un-Answered Questions { Java Related }

How annotation wiring can be turned on in spring?

153


Can tomcat run ejb?

534


How does hibernate useful in mapping object and its relations?

171


What are different types of autowire types?

146


What is the meaning of cross cutting concerns?

167






How do I convert a string to an int in java?

545


What is jms topic?

549


What is the use of execAndWait interceptor?

554


What’s hql?

231


What is the use of @service annotation in spring?

168


What is the jdbc rowset?

538


What is difference between path and classpath?

556


How does j2ee application work?

465


How to check (validate) the form data in the spring web mvc framework?

156


Is set ordered?

535