Está en la página 1de 6

PROGRAM BCA - SEMESTER 4

SUBJECT CODE & NAME - BCA 4020 - JAVA


PROGRAMMING
1. Explain any five features of Java.
Features of Java
Below are the features of Java
(1) Simple : - Java was designed to be easy for the professional programmer to
learn and use effectively. Assuming that you have some programming experience,
you will not find Java hard to master. If you already understand the basic
concepts of object-oriented programming, learning Java will be even easier. Best of
all, if you are an experienced C++ programmer, moving to Java will require very
little effort. Because Java inherits the C/C++ syntax and many of the objectoriented features of C++, most programmers have little trouble learning Java.
Also, some of the more confusing concepts from C++ are either left out of
Java or implemented in a cleaner, more approachable manner. Beyond its
similarities with C/C++, Java has another attribute that makes it easy to learn: it
makes an effort not

READY MADE SOLVED ASSIGNMENTS, PROJECT


REPORTS, MODEL QUESTION PAPERS, GUIDE,
SYNOPSIS ETC. OF SIKKIM MANIPAL UNIVERISTY
Call : - +91 9540358147, Whatsapp: +91 8285115522
Website: - www.smudoc.in, Email ID :
smudoc@gmail.com
2. Describe main () method in Java. What are the
rules for writing a main () method?
The main() Method

In a Java application, you may have many classes. Within those classes, you
may have many methods. The method that you need to execute first should be
the main() method.
Syntax for the main() method:
public static void main(String args[])
{
}
The main () method should exist in a class that is declared as public.
A Java application (like DateApp in the code listed above) must contain a main()
method whose signature looks like this

READY MADE SOLVED ASSIGNMENTS, PROJECT


REPORTS, MODEL QUESTION PAPERS, GUIDE,
SYNOPSIS ETC. OF SIKKIM MANIPAL UNIVERISTY
Call : - +91 9540358147, Whatsapp: +91 8285115522
Website: - www.smudoc.in, Email ID :
smudoc@gmail.com
3. Differentiate between packages and Interfaces.
Packages
To create a package is quite easy: simply include a package command as the first
statement in a Java source file. Any classes declared within that file will belong to
the specified package. The package statement defines a name space in which
classes are stored. If you omit the package statement, the class names are put into
the default package, which has no name. (This is why you haven't had to worry
about packages before now.) While the default package is fine for short, sample
programs, it is inadequate for real applications. Most of the time, you will define a
package for your code. This is the general form of the package statement: package
pkg;

Here, pkg is the name of the package. For example, the following statement creates
a package called

READY MADE SOLVED ASSIGNMENTS, PROJECT


REPORTS, MODEL QUESTION PAPERS, GUIDE,
SYNOPSIS ETC. OF SIKKIM MANIPAL UNIVERISTY
Call : - +91 9540358147, Whatsapp: +91 8285115522
Website: - www.smudoc.in, Email ID :
smudoc@gmail.com

4. What are Applets? What are the restrictions


of Applets? Describe about applet class.
Applets : An applet is a Java program that can be embedded in a web page. Java
applications are run by using a Java interpreter. Applets are run on any
browser that supports Java. Applets can also be tested using the appletviewer
tool included in the Java Development Kit. In order to run an applet it must be
included in a web page, using HTML tags. When a user browses a web server and
it runs applets on the users system.
Applets have certain restrictions put on them :

They can not read or write files on the users system.


They can not load or run any programs stored on the users system.

All applets are subclasses of the Applet class in the java.applet package. Applets
do not have main() method. All applets must be declared public. An applet displays
information on the screen by using the paint method. This method is available in
java.awt.Component class. This method takes an instance

READY MADE SOLVED ASSIGNMENTS, PROJECT


REPORTS, MODEL QUESTION PAPERS, GUIDE,
SYNOPSIS ETC. OF SIKKIM MANIPAL UNIVERISTY
Call : - +91 9540358147, Whatsapp: +91 8285115522
Website: - www.smudoc.in, Email ID :
smudoc@gmail.com

5. Compare JDBC and ODBC.


Java Data Base Connectivity (JDBC)
The JDBC API (Java Data Base Connectivity Application Program Interface) can
access any kind of tabular data, especially data stored in a Relational Database. It
works on top of ODBC (Open Data Base Connectivity) which was the driver for
database connectivity since age old days but since ODBC was implemented in
C so people from the VB background had some problems in understanding
the implementation intricacies. Since JDBC works on top of ODBC we have
something called as a JDBC-ODBC bridge to access the database. JDBC helps
you to write Java applications that manage

READY MADE SOLVED ASSIGNMENTS, PROJECT


REPORTS, MODEL QUESTION PAPERS, GUIDE,
SYNOPSIS ETC. OF SIKKIM MANIPAL UNIVERISTY
Call : - +91 9540358147, Whatsapp: +91 8285115522
Website: - www.smudoc.in, Email ID :
smudoc@gmail.com

6. Describe about:
a) Swing
b) JFC
a) Swing
Swing is the next-generation GUI toolkit that Sun Microsystems created to enable
enterprise development in Java. By enterprise development, we mean that
programmers can use Swing to create large-scale Java applications with a wide
array of powerful components. Swing components are an enhancement to the
existing Abstract Window Toolkit (AWT) components and are not intended to replace
AWT components. Both types of components can be used in the same
interface. Swing components range from basic controls such as buttons, check
boxes, scrollbars, and sliders to complex widgets like text panes and editor panes.
Unlike AWT components, Swing components are not implemented by platformspecific code; instead, they are written entirely in Java and, therefore, are

READY MADE SOLVED ASSIGNMENTS, PROJECT


REPORTS, MODEL QUESTION PAPERS, GUIDE,
SYNOPSIS ETC. OF SIKKIM MANIPAL UNIVERISTY

Call : - +91 9540358147, Whatsapp: +91 8285115522


Website: - www.smudoc.in, Email ID :
smudoc@gmail.com

También podría gustarte