You are on page 1of 2

Q.1What is IP address Ans:- The java.net.

InetAddress class provides methods to get the IP address of any


hostname. An IP address is represented by 32-bit or 128-bit unsigned number. InetAddress can handle
both IPv4 and IPv6 addresses. There are 2 types of addresses : Unicast — An identifier for a single
interface. Multicast — An identifier for a set of interfaces.

Q.2 TCP/IP Protocol :-TCP/IP is a communication protocol model used connect devices over a network via
internet. TCP/IP helps in the process of addressing, transmitting, routing and receiving the data packets
over the internet. The two main protocols used in this communication model are: TCP i.e. Transmission
Control Protocol. TCP provides the way to create a communication channel across the network. It also
helps in transmission of packets at sender end as well as receiver end. IP i.e. Internet Protocol. IP
provides the address to the nodes connected on the internet. It uses a gateway computer to check
whether the IP address is correct and the message is forwarded correctly or not.

Q.3 What is JDBC :-JDBC stands for Java Database Connectivity. JDBC is a Java API to connect and execute
the query with the database. It is a part of JavaSE (Java Standard Edition). JDBC API uses JDBC drivers to
connect with the database. There are four types of JDBC drivers: JDBC-ODBC Bridge Driver, Native Driver,
Network Protocol Driver, and Thin Driver We have discussed the above four drivers in the next chapter.

Q.4 what is servlet :-A servlet is a Java programming language class that is used to extend the capabilities
of servers that host applications accessed by means of a request-response programming model.
Although servlets can respond to any type of request, they are commonly used to extend the
applications hosted by web servers

Q.5 What is Cookies :-Creates a cookie, a small amount of information sent by a servlet to a Web
browser, saved by the browser, and later sent back to the server. A cookie’s value can uniquely identify a
client, so cookies are commonly used for session management.

Q.6 What is UDP :-User Datagram Protocol (UDP) is a communications protocol that is primarily used to
establish low-latency and loss-tolerating connections between applications on the internet.

Q.7 What is Thread :-Thread is a very light-weighted process, or we can say the smallest part of the
process that allows a program to operate more efficiently by running multiple tasks simultaneously. In
order to perform complicated tasks in the background, we used the Thread concept in Java

Q.8 What Is Socket :- A socket is one endpoint of a two-way communication link between two programs
running on the network. A socket is bound to a port number so that the TCP layer can identify the
application that data is destined to be sent to.An endpoint is a combination of an IP address and a port
number

Q.9 List the directives in JSP :- The jsp directives are messages that tells the web container how to
translate a JSP page into the corresponding servlet. There are three types of directives: Page directive,
Include directive, Taglib directive, Syntax of JSP Directive <%@ directive attribute=”value” %>

Q.10 What is Networking:- Java networking is the concept of connecting two or more computing devices
to share resources. The application layer of a Java program communicates with the network. The java.net
package contains all of the Java networking classes and interfaces.

Q.11 Applications of spring:- Spring is a lightweight framework. It can be thought of as a framework of


frameworks because it provides support to various frameworks such as Struts, Hibernate, Tapestry, EJB,
JSF, etc. The framework, in broader sense, can be defined as a structure where we find solution of the
various technical problems. The Spring framework comprises several modules such as IOC, AOP, DAO,
Context, ORM, WEB MVC etc. We will learn these modules in next page. Let’s understand the IOC and
Dependency Injection first

Q.12 Connection Interface A Connection is a session between a Java application and a database. It helps
to establish a connection with the database. The Connection interface is a factory of Statement,
PreparedStatement, and DatabaseMetaData, i.e., an object of Connection can be used to get the object
of Statement and DatabaseMetaData. The Connection interface provide many methods for transaction
management like commit(), rollback(), setAutoCommit(), setTransactionIsolation(), etc.

You might also like