Monday, 10 November 2014

HCL Interview Questions

1.What is Difference between Ant and Maven?
AntMaven
Ant doesn't has formal conventions, so we need to provide information of the project structure in build.xml file.Maven has a convention to place source code, compiled code etc. So we don't need to provide information about the project structure in pom.xml file.
Ant is procedural, you need to provide information about what to do and when to do through code. You need to provide order.Maven is declarative, everything you define in the pom.xml file.
There is no life cycle in Ant.There is life cycle in Maven.
It is a tool box.It is a framework.
It is mainly a build tool.It is mainly a project management tool.
The ant scripts are not reusable.The maven plugins are reusable.
It is less preferred than Maven.It is more preferred than Ant.

2.What is PMD?
PMD is an open source static source code analyzer that reports on issues found within application code. PMD includes built-in rule sets and supports the ability to write custom rules. PMD does not report compilation errors, as it only can process well-formed source files


3.What is IBM WebSphere?

4.What are Java 1.6 Features?
>Collections Framework Enhancements:
     New collection interfaces includes Deque, NavigableSet, NavigableMap.  
    Deque: A linear collection that supports element insertion and removal at both ends. The name deque is short for "double ended queue".This interface defines methods to access the elements at both ends of the deque. Methods are provided to insert, remove, and examine the element. Each of these methods exists in two forms: one throws an exception if the operation fails, the other returns a special value (either null or false, depending on the operation).

>java.io Enhancements:
-New classConsole is added and it contains methods to access a character-based console device. 
-The readPassword()methods disable echoing thus they are suitable for retrieval of sensitive 
 data such as passwords. 
-The method System.console ()returns the unique console associated with the Java Virtual 
 Machine.  

> GUI:   
  -JFC and Swing integration with desktop by using Windows API. 
  -Java 2D integration with desktop such as using desktop anti-aliasing font setting.
  -System tray support with ability to add icons, tool tips, and pop-up menus to the Windows or 
    any other system tray .

>Security Features and Enhancements:
  -  Native platform Security (GSS/Kerberos) integration.
  - Java Authentication and Authorization Service (JAAS) login module that employs LDAP
    authentication
  -New Smart Card I/O API

>JavaTM API for XML Processing (JAXP): 
 -The Java API for XML Processing (JAXP) enables applications to parse, transform, validate and 
  query XML documents using an API that is independent of a particular XML processor 
  implementation. JAXP provides a pluggability layer to enable vendors to provide their own 
  implementations without introducing dependencies in application code. Using this software, 
  application and tool developers can build fully-functional XML-enabled Java applications for 
  e-commerce, application integration, and web publishing. 
-The Java Platform, Standard Edition version 6.0 includes JAXP 1.4. JAXP 1.4 is a maintenance 
  release of JAXP 1.3 with support for the Streaming API for XML (StAX)

>JDBC 4.0 Enhancements :
 -The major features added in JDBC 4.0 include:
         1.Auto-loading of JDBC driver class
         2.Connection management enhancements
         3.Support for RowId SQL type
         4.DataSet implementation of SQL using Annotations
         5.SQL exception handling enhancements

5.What is difference Between HTTP and HTTPS?
Difference between HTTP and HTTPS:
1. URL begins with ?http://" in case of HTTP while the URL begins with ?https://? in case of HTTPS.
2. HTTP is unsecured while HTTPS is secured.
3. HTTP uses port 80 for communication while HTTPS uses port 443 for communication.
4. HTTP operates at Application Layer while HTTPS operates at Transport Layer.
5. No encryption is there in HTTP while HTTPS uses encryption.


How HTTPS works?
For HTTPS connection, public key and signed certificates are required for the server.
When using an https connection, the server responds to the initial connection by offering a list of encryption methods it supports. In response, the client selects a connection method, and the client and server exchange certificates to authenticate their identities. After this is done, both parties exchange the encrypted information after ensuring that both are using the same key, and the connection is closed. In order to host https connections, a server must have a public key certificate, which embeds key information with a verification of the key owner's identity.



 

 

 




Print Friendly Version of this pagePrint Get a PDF version of this webpagePDF

No comments:

Simplest way to display Server Time in JSP using js

THE BELOW CODE WORKS ONLY IN JSP : <html> <body > <table width="95%" border="1" cellpadding="1...