Java Faqs
Java Faqs
_____________________________________________________________________________________
1. What are the differences between GET and POST in RESTful Web
Services?
2. What are the diff design approaches to create SOAP based Web
Services?
Ans: Top-Down and Bottom-Up design approaches. They call it as Contract
First or Contract Last.
3.
4.
5.
6.
Spring has layered architecture. Use what you need and leave you don't need
Spring Enables POJO Programming. There is no behind the scene magic here.
programming enables continuous integration and testability.
Dependency Injection and Inversion of Control Simplifies JDBC
Open source and no vendor lock-in.
11.
Improved productivity
i.
High-level object-oriented API
ii.
Less Java code to write
iii.
No SQL to write
2.
Improved performance
i.
Sophisticated caching
ii.
Lazy loading
iii.
Eager loading
3.
Improved maintainability
i.
A lot less code to write
4.
Improved portability
i.
ORM framework generates database-specific SQL for you
12.
What is differences between RESTful web services and SOAP
web services?
Ans: Though both RESTful web series and SOAP web service can operate cross
platform they are architecturally different to each other, here is some of differences
between REST and SOAP:
1) REST is more simple and easy to use than SOAP. REST language is based on use
of nouns and verbs (better readability)
2) REST uses HTTP protocol for producing or consuming web services while SOAP
uses XML.
The SOAP WS permits only XML data format.You define operations, which
tunnels through the POST. The focus is on accessing the named operations and
exposing the application logic as a service.
The REST permits multiple data formats like XML, JSON data, text, HTML, etc.
Any browser can be used because the REST approach uses the standard GET, PUT,
POST, and DELETE Web operations. The focus is on accessing the named resources
and exposing the data as a service. REST has AJAX support. It can use the