DRIVE FALL
|
2013
|
PROGRAM
|
MCA
|
SUBJECT CODE AND NAME
|
MCA 4030 -
PROGRAMMING IN JAVA
|
SEMESTER
|
4
|
BOOK ID
|
B1477
|
CREDITS
|
4
|
MARKS
|
60
|
Dear
students get fully solved assignments
Send
your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call
us at : 08263069601
Q.1. What is Java
Development Kit (JDK)? Give list of all tools available for JDK with their
description.
Ans
: A Java Development Kit (JDK) is a program
development environment for writing Java applets and
applications. It consists of a runtime environment that "sits on top"
of the operating layer as well as the tools and programming that developers
need to compile, debug, and run applets and applications written in the Java
language.
People new to Java may be
confused about whether to use the JRE or the JDK. To run Java applications and
applets, simply download the JRE. However, to develop Java applications and
applets as well as run them, the
Q.2 What Are Operators?
Explain three kinds of Operators.
Ans : Java provides a rich set of operators to manipulate variables. We
can divide all the Java operators into the following groups:
·
Arithmetic Operators
·
Relational Operators
·
Bitwise Operators
·
Logical Operators
·
Assignment Operators
·
Misc Operators
Q.3 What is an Exception? What are the common
exceptions in JAVA? Explain the keywords used for exception-handlings with the
help of an example.
Ans : An exception is a problem
that arises during the execution of a program. An exception can occur for many
different reasons, including the following:
·
A user has entered invalid
data.
·
A file that needs to be opened
cannot be found.
·
A network connection has been
lost in the middle of communications or the JVM has run out of memory.
Some of these exceptions are caused by user
error, others by programmer error, and others by physical resources that have
failed in some manner.
Q.4 Explain any 10
Packages in Swing Libraries.
Ans : Swing is the
primary Java GUI widget
toolkit. It is part of Oracle's Java Foundation Classes (JFC) —
an API for providing
a graphical user interface (GUI) for
Java programs. Swing was developed to provide a more sophisticated set of
GUI components than the earlier Abstract Window Toolkit (AWT). Swing
provides a native look and feel that emulates the look and
feel of several platforms, and also supports a pluggable look and feel that allows
applications to have a look and feel unrelated to the underlying platform. It
has more powerful and flexible components than
Q.5 Explain the process of Servlet Life Cycle with
diagram.
Ans : A servlet is managed through a well defined life cycle
that defines how it is loaded and instantiated, is initialized, handles
requests from clients, and is taken out of service. This life cycle is
expressed in the API by the init, service, and destroy methods of the
javax.servlet.Servlet interface that all servlets must implement directly or
indirectly through the GenericServlet or HttpServlet abstract classes.
Q. 6 What is Java Data Base Connectivity (JDBC).Explain JDBC
Application Architecture with diagram?
Ans : The Java Database Connectivity (JDBC):-
The Java Database Connectivity
(JDBC) API is the industry standard for database-independent connectivity
between the Java programming language and a wide range of databases – SQL
databases and other tabular data sources, such as spreadsheets or flat files.
The JDBC API provides a call-level API for SQL-based database access.
The programming involved to
establish a JDBC connection is fairly simple. Here are these simple four steps:
Dear
students get fully solved assignments
Send
your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call
us at : 08263069601
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.