NIIT Technologies Java Interview Questions
- 1) What is apply operator in sql?
- 2) What is the difference between an interface and an abstract class?
- 3) Explain What is Spring MVC?
- 4) What is abstraction?
- 5) What is the difference between left and right outer join?
- 6) Explain how HashMap works?
- 7) Write a factorial program using recursion in Java?
- 8) What is Operator overloading. Is it is supported in java?
- 9) How to avoid memory leak in JAVA?
- 10) What is EnumSet?
- 11) How can we create a synchronized collection from given collection?
- 12) What is ceil and floor in Oracle?
- 13) What is Singleton design pattern?
- 14) What is Difference between equals and hashcode method?
- 15) Explain Dependency Injection and its types?
- 16) What is difference between String buffer and String builder ?
- 17) What are 4 pillers of object orinted programming?
- 18) What are abstract functions? Why are they used?
- 19) What is jframe?
Below are the list of Best NIIT Technologies Java Interview Questions and Answers
In the year 2005, SQL server has introduced apply operator. This is basically a joining that shows the expression of the left table with the right table expression. The expressions that are basically produced in the right table expression is after following up each row in the left table. The left table expressions are calculated in the first hand and then the right table. After following this process we can get our final set value.
Spring MVC is a framework of Java used for developing web applications. It follows the design pattern of Model-View-Controller. A spring MVC gives an optimum solution to use the spring framework along with MVC. To do so, it takes the help of the DispatcherServlet that receives the incoming request and then implements it to a suitable resource including controllers, views, and models. Spring MVC has a number of advantages such as rapid development and ease of testing.
Abstraction is basically used to separate the useless data from the essential ones. Only the important things that need to be shown to the users are only being exposed. Here in these issues, the users get to view only the essential data which is actually required. It also helps in differentiating the object from any other similar object just by looking into the classification of features. It is a really efficient process of filtering.
EnumSet is basically used for coding purposes. Where there are a set of words that have the same meaning and can be denoted by a single word. Like for example, there are a set of words that consists of words like red, green, yellow, blue. These all words can be denoted by a single word which can be easily denoted by a single word like Colours. It is basically of high performance and is really reliable.
Ceil and Floor are the functions of Oracle and both of them are completely opposite to each other.
- Oracle CEIL function: This function is used to return the smallest value of integer to the greater or equal value of the supplied number. In short, it rounds up the digit to the nearest whole number. Ceil is the short form used for the ceiling.
- Oracle FLOOR function: This function of Oracle is used to round down the value to the nearest whole number. The main purpose of using floor function is to return the value of the highest integer to the greater or equal of the lowest value of the supplied number.
Singleton design pattern is a creational pattern that is used whenever only one instance an object is needed to be created. In this pattern, you can't initialize the class.
Dependency injection is way to pass one obeject dependencies to another object.It is a broader form of inversion of control (IOC).
There are basically 3 types of dependency injection:
- constructor injection
- setter injection
- Interface injection
The four pillars of the OOPs are:
- Abstraction: Abstraction is basically used to separate unwanted things from the essential ones. Only important properties.
- Encapsulation: The encapsulation process consists of certain methods and properties of the abstraction process. It also protects these methods from any interference or tampering.
- Inheritance: Inheritance is of two types basically: single inheritance & multiple inheritances. It is how a class is derived from the other class.
- Polymorphism: Here in polymorphism, you can name it all the same for the different actions of an object of different data types.
The abstract function or method does not have a body and also it cannot be implemented. The abstract classes cannot be started without the help of the subclasses that help in providing the implementations which are actually for the abstract methods. They actually try developing base classes which help in the custom implementation. The keyword abstract can be used to denote both the abstract methods and also an abstract class.
JFrame, Swing's top-level container provides a window on the screen and frame is a support window where additional components depend, like the menu bar, panel, label, text field, button, etc. Nearly every Swing application commences with a JFrame window. The javax.swing.JFrame class is a container that inherits the java.awt.Frame class. Moreover, JFrame operates like the main window where elements like label, button, text field are combined to create a GUI. Unlike Frame, JFrame has the choice to hide or terminate the window with the help of setDefaultCloseOperation(int) function.
Related Interview Questions
Java Interview Questions asked in Citibank
Appinventiv Php Developer Interview Questions
Capgemini Java interview questions
NIIT Technologies Java Interview Questions
Cyient Java developer Interview Questions
Abinitio Interview Questions
CyberArk Interview Questions
HCL Testing interview questions
HCL freshers interview questions
HCL Java Developer Interview Questions
HCL Android Developer Interview Questions
HCL IOS Developer Interview Questions
Cognizant Mulesoft interview questions
Cognizant Informatica interview questions
Cognizant Hadoop Interview Questions
Cognizant Java Interview Questions
Cognizant Cognos Interview Questions
Cognizant Testing interview questions
Cyient GIS Interview Questions
Cyient Design Engineer Interview Questions
Subscribe Our NewsLetter
Never Miss an Articles from us.
- Common Interview Questions
- Python Flask Interview Questions
- NoSQL interview questions
- JQuery Interview Questions
- C programming interview questions
- AngularJS Interview Questions
- Node JS Interview Questions with Express
- Core Java interview questions
- HTML Interview Questions
- Laravel interview questions
- Wordpress Interview Questions
- PHP Interview Questions