NIIT Technologies Java Interview Questions

NIIT Technologies Java Interview Questions
Download NIIT Technologies Java Interview Questions PDF

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

Click Here to Read More 100 Questions on Laravel 5 & 6

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.