The Complete Project Source Code Platform

Kashipara.com is a community of ONE million programmers and students, Just like you, Helping each other.Join them. It only takes a minute: Sign Up

Job Resume Template

popular java 1 Job Interview Questions And Answers


Why don't preparation your interviews. Best and top asking questions java 1 questions and answers. Prepare your job java 1 interview with us. Most frequently asked questions in java 1 interview. Top 10 most common java 1 interview questions and answer to ask. java 1 most popular interview question for fresher and experiences. We have good collection of java 1 job interview questions and answers. Ask interview questions and answers mnc company.employee ,fresher and student. java 1 technical questions asking in interview. Complete placement preparation for major companies tests and java 1 interviews,Aptitude questions and answers, technical, interview tips, practice tests, assessment tests and general knowledge questions and answers.


Free Download java 1 Questions And Answers Pdf.


popular java 1 FAQ java 1 Interview Questions and Answers for Experiences and Freshers.



Difference between Set, List and Map Collection classes?

java.util.Set, java.util.List and java.util.Map defines three of most popular data structure support in Java. Set provides uniqueness guarantee i.e.g you can not store duplicate elements on it, but it's not ordered. On the other hand List is an ordered Collection and also allowes duplicates. Map is based on hashing and stores key and value in an Object called entry. It provides O(1) performance to get object, if you know keys, if there is no collision. Popular impelmentation of Set is HashSet, of List is ArrayList and LinkedList, and of Map are HashMap, Hashtable and ConcurrentHashMap. Another key difference between Set, List and Map are that Map doesn't implement Collection interface, while other two does. For a more detailed answer, see Set vs List vs Map in Java

java collection   jayvik 2014-04-05 06:51:34

How is scripting disabled?

Scripting is disabled by setting the scripting-invalid element of the deployment descriptor to true. It is a subelement of jsp-property-group. Its valid values are true and false. The syntax for disabling scripting is as follows:

<jsp-property-group>
   <url-pattern>*.jsp</url-pattern>
   <scripting-invalid>true</scripting-invalid>
</jsp-property-group>

java server pages (JSP) Interview question.

java server pages (JSP)   2013-05-12 18:22:04

What are some common problems you have faced in multi-threading environment? How did you resolve it?

Memory-interference, race conditions, deadlock, live lock and starvation are example of some problems comes in multi-threading and concurrent programming. There is no end of problem if you get it wrong and they will be hard to detect and debug.

java thread   jayvik 2014-04-14 09:34:51

How will you awake a blocked thread in java?

This is tricky question on threading, blocking can result on many ways, if thread is blocked on IO then I don't think there is a way to interrupt the thread, let me know if there is any, on the other hand if thread is blocked due to result of calling wait(), sleep() or join() method you can interrupt the thread and it will awake by throwing InterruptedException. See my post How to deal with blocking methods in Java for more information on handling blocked thread.

java thread   jayvik 2014-04-14 09:32:41

What is difference between invokeAndWait and invokeLater?

invokeAndWait(Runnable r) and SwingUtilities.invokeLetter(Runnable r) though there are quite a few differences between these two, major one is invokeAndWait is a blocking call and wait until GUI updates while invokeLater is a non blocking asynchronous call. In my opinion these question has its own value and every swing developer should be familiar with these questions or concept not just for interview point of view but on application perspective. you can read more on my post  How InvokeAndWait and InvokeLater works in Swing

java swing   jayvik 2014-04-04 05:55:07

What is Exception in Java?

In simple word Exception is Java’s way to convey both system and programming errors. 
In Java Exception feature is implemented by using class like Throwable, Exception, RuntimeException and keywords like throw, throws, try, catch and finally. 
All Exception are derived form Throwable class. Throwable further divides errors in too category one is java.lang.Exception and other is java.lang.Error.  
java.lang.Error deals with system errors like java.lang.StackOverFlowError or Java.lang.OutOfMemoryError while Exception is mostly used to deal with programming mistakes, non availability of requested resource etc.

java exception interview questions for fresher and experience.

java exception   2013-10-01 10:48:10

What is the <jsp:include> standard action?

The <jsp:include> standard action enables the current JSP page to include a static or a dynamic resource at runtime. In contrast to the include directive, the include action is used for resources that change frequently. The resource to be included must be in the same context.The syntax of the <jsp:include> standard action is as follows:
<jsp:include page="targetPage" flush="true"/> 
Here, targetPage is the page to be included in the current JSP.

java server pages (JSP) Interview question.

java server pages (JSP)   2013-05-12 18:04:23

Explain the Spring ApplicationContext ?

A Spring ApplicationContext allows you to get access to the objects that are configured in a BeanFactory in a framework manner.
ApplicationContext extends BeanFactory
Adds services such as international messaging capabilities.
Add the ability to load file resources in a generic fashion.
Several ways to configure a context: 
XMLWebApplicationContext – Configuration for a web application.
ClassPathXMLApplicationContext – standalone XML application context
FileSystemXmlApplicationContext

Allows you to avoid writing Service Locators

java spring interview questions and answers.

java spring   2013-09-04 12:13:22

Can we make an Hibernate Entity Class final?

Yes, you can make an Hibernate Entity class final, but that's not a good practice. Since Hibernate uses proxy pattern for performance improvement in case of lazy association, by making an entity final, Hibernate will no longer be able to use proxy, because Java doesn't allow extension of final class, thus limiting your performance improvement options. Though, you can avoid this penalty, if your persistent class is an implementation of interface, which declares all public methods defined in Entity class.

java hibernate interview questions and answers.

java hibernate framework   2013-08-14 14:51:19

What are the modules Spring Provides ?

The Core package is the most fundamental part of the framework and provides the IoC and Dependency Injection features. 
The Context package build on the solid base provided by the Core package: it provides a way to access objects in a framework-style manner in a fashion somewhat reminiscent of a JNDI-registry. 
The DAO package provides a JDBC-abstraction layer that removes the need to do tedious JDBC coding and parsing of database-vendor specific error codes. 
The ORM package provides integration layers for popular object-relational mapping APIs, including JPA, JDO, Hibernate, and iBatis.
Spring's AOP package provides an AOP Alliance-compliant aspect-oriented programming implementation allowing you to define, for example, method-interceptors and pointcuts to cleanly decouple code implementing functionality that should logically speaking be separated. 
Spring's Web package provides basic web-oriented integration features, such as multipart file-upload functionality, the initialization of the IoC container using servlet listeners and a web-oriented application context. 
Spring's MVC package provides a Model-View-Controller (MVC) implementation for web-applications. Spring's MVC framework is not just any old implementation, it provides a clean separation between domain model code and web forms, and allows you to use all the other features of the Spring Framework.

java spring interview questions and answers.

java spring   2013-09-04 12:10:07

What is immutable object? How does it help on writing concurrent application?

Another classic interview questions on multi-threading, not directly related to thread but indirectly helps a lot. This java interview question can become more tricky if ask you to write an immutable class or ask you Why String is immutable in Java as follow-up.

java thread   jayvik 2014-04-14 09:34:00

What are the advantages of JSP over Servlet?

JSP is a serverside technology to make content generation a simple appear.The advantage of JSP is that they are document-centric. Servlets, on the other hand, look and act like programs. A Java Server Page can contain Java program fragments that instantiate and execute Java classes, but these occur inside an HTML template file and are primarily used to generate dynamic content. Some of the JSP functionality can be achieved on the client, using JavaScript. The power of JSP is that it is server-based and provides a framework for Web application development.

java server pages (JSP)   2013-05-12 16:43:18

What are the possible combination to write try, catch finally block?

1) try{
//lines of code that may throw an exception
}catch(Exception e){
//lines of code to handle the exception thrown in try block
}finally{
//the clean code which is executed always no matter the exception occurs or not.
}

2 try{
}finally{}

3 try{
}catch(Exception e){
//lines of code to handle the exception thrown in try block
}


The catch blocks must always follow the try block. If there are more than one catch blocks they all must follow each other without any block in between. The finally block must follow the catch block if one is present or if the catch block is absent the finally block must follow the try block.
java exception interview questions

java exception   2013-10-11 11:56:24

Differentiate between pageContext.include and jsp:include?

The <jsp:include> standard action and the pageContext.include() method are both used to include resources at runtime. However, the pageContext.include() method always flushes the output of the current page before including the other components, whereas <jsp:include> flushes the output of the current page only if the value of flush is explicitly set to true as follows: 

 <jsp:include page="/index.jsp" flush="true"/>  <jsp:include page="/index.jsp" flush="true"/> 

java server pages (JSP) Interview question.

java server pages (JSP)   2013-05-12 18:08:48

Explian some of the DAO Support classes in Spring Framework ?

JdbcDaoSupport 
Provides callback methods for row iteration
HibernateDaoSupport 
Initializes Hibernate session factory
Provides templates to invoke Hibernate API or the session
SqlMapDaoSupport
Provides template for iBatis SQLMaps
Support similar to Hibernate template

java spring interview questions and answers.

java spring   2013-09-04 12:14:33

What is a JSP expression?

A JSP expression is used to write an output without using the out.print statement. It can be said as a shorthand representation for scriptlets. An expression is written between the <%= and %> tags. It is not required to end the expression with a semicolon, as it implicitly adds a semicolon to all the expressions within the expression tags.

java server pages (JSP) Interview question.

java server pages (JSP)   2013-05-12 18:20:43

What is volatile keyword in Java? How to use it? How is it different from synchronized method in Java?

Thread questions based on volatile keyword in Java has become more popular after changes made on it on Java 5 and Java memory model. It’s good to prepare well about how volatile variables ensures visibility, ordering and consistency in concurrent environment.

java thread   jayvik 2014-04-14 09:30:21

How can you get the information about one servlet context in another servlet?

In context object we can set the attribute which we want on another servlet and we can get that attribute using their name on another servlet.
Context.setAttribute (“name”,” value”)
Context.getAttribute (“name”)

java servlet   jayvik 2014-04-09 08:52:49

What is NavigableMap in Java ? What is benefit over Map?

NavigableMap Map was added in Java 1.6, it adds navigation capability to Map data structure. It provides methods like lowerKey() to get keys which is less than specified key, floorKey() to return keys which is less than or equal to specified key, ceilingKey() to get keys which is greater than or equal to specified key and higherKey() to return keys which is greater specified key from a Map. It also provide similar methods to get entries e.g. lowerEntry(), floorEntry(), ceilingEntry() and higherEntry(). Apart from navigation methods, it also provides utilities to create sub-Map e.g. creating a Map from entries of an exsiting Map like tailMap, headMap and subMap. headMap() method returns a NavigableMap whose keys are less than specified, tailMap() returns a NavigableMap whose keys are greater than the specified and subMap() gives a NavigableMap between a range, specified by toKey to fromKey.  

java collection   jayvik 2014-04-05 06:48:37

What is checked exception?

Checked exception are the exceptions which forces the programmer to catch them explicitly in try-catch block. It is a subClass of Exception. Example: IOException.

java exception interview questions for fresher and experience.

java exception   2013-10-01 11:06:37




popular java 1 questions and answers for experienced


java 1 best Interview Questions have been designed especially to get you acquainted with the nature of questions you may encounter during your interview for the subject of java 1 Programming Language. here some questions that helpful for your interview. java 1 2025 job interview questions with answers. java 1 for employee and fresher. Here we present some more challenging practice java 1 interview questions and answers that were asked in a real interview for a java 1 developer position. These questions are really good to not just test your java 1 skills, but also your general development knowledge. java 1 programming learning. we hope this java 1 interview questions and answers would be useful for quick glance before going for any java 1 job interview.