Posts

Showing posts from 2013

Core Java Interview Question and Answer (For Fresher & Experience )

1. What is the difference between private, protected, and public? These keywords are for allowing privileges to components such as java methods and variables. Public: accessible to all classes Private: accessible only to the class to which they belong Protected: accessible to the class to which they belong and any subclasses. Access specifiers are keywords that determines the type of access to the member of a class. These are: * Public * Protected * Private * Defaults 2. What's the difference between an interface and an abstract class? Also discuss the similarities.  (Very Important) Abstract class is a class which contain one or more abstract methods, which has to be implemented by sub classes. Interface is a Java Object containing method declaration and doesn't contain implementation. The classes which have implementing the Interfaces must provide the method definition for all the methods Abstract class is a Class prefix with a abstract keyword followed by Class definition. ...

JSON interview questions and answer

Questions : 1 What is The JSON(JavaScript Object Notation) ? Answers : 1 JavaScript Object Notation (JSON)  is a lightweight text-based open standard designed for human-readable data interchange. It is derived from the JavaScript programming language for representing simple data structures and associative arrays, called objects. And JSON is language-independent, with parsers available for virtually every programming language. Uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python,php The JSON format is often used for serializing and transmitting structured data over a network connection. When third party data interchane(REST Services) then JSON may used there LIKE SHOP .It is primarily used to transmit data between a server and web application, serving as an alternative to XML.     Questions : 2 Who is the Father or creater of JSON ? Answers : 2 Douglas Crockford called as the Father o...

Spring interview questions and answers

Questions : 1 What is IOC (or Dependency Injection)? Answers : 1 The basic concept of the Inversion of Control pattern (also known as dependency injection) is that you do not create your objects but describe how they should be created. You don't directly connect your components and services together in code but describe which services are needed by which components in a configuration file. A container (in the case of the Spring framework, the IOC container) is then responsible for hooking it all up. i.e., Applying IoC, objects are given their dependencies at creation time by some external entity that coordinates each object in the system. That is, dependencies are injected into objects. So, IoC means an inversion of responsibility with regard to how an object obtains references to collaborating objects. .     Questions : 2 What are the different types of IOC (dependency injection) ? Answers : 2 There are three types of dependency injection: ==>Constructor Injection...