Q1. A. Write note on "The class path Environment Variable".
B. Which are different kinds of source code?

Q2. A. How to create an interface?
B. Why convert an applet to an application?

Q3. A. How to use Media tracker Class.
B. How to use string tokenizer class.

Q4. A. Explain the overview of UDP messaging.
B. Difference between SQL Exception class and SQL Warning
class.

Q5. A. How to create com object in Java?
B. Write short notes on "The properties class"

Q6. A. When object is created and destroyed?
B. Explain the JDB in depth & command line.
C. Write short notes on Web Sites.














Q1. A. Write note on "The class path Environment Variable". B. Which are different kinds ..

Answer / krishna kumar m

Q1. A. Enironment : Environment Variables are stored in a
small area of memory available
to all programs running within or on top of the DOS
environment (including Windows).
They are called “variables” because they can be changed.
In fact, some variables need to be reestablished after
every reboot.
Variable names are NOT case sensitive within Windows.

B. Source code : C, C++ or VisualBasic

Q2. A.
Interface is defined as group of method, that implement a
empty body.
An example of Radio Tuner, when a listener switch on Radio
Tuner,
the tuner act as interface between the electrical wing
circuit inside the radio and you.
Usually the Java do not support multiple inheritance,
Interface in java is
used for multiple inheritance.

B.
Replace the hard-coded links with a programmable link
(Javascript? Applet tag? Object tag?) that could perform a
redirect at runtime.
When you are starting a project, which should it be, an
Applet or application or both?
The advantages of using an Applet are:
You can get the browser to render HTML for you.
You can direct the browser to fetch and display material
off the web.
The user automatically gets the latest version of the
software.
There is nothing to install.


Q3. A. The MediaTracker class is a utility class to track
the status of a number
of media objects. Media objects could include audio clips
as well as images,
though currently only images are supported.
To use a media tracker, create an instance of MediaTracker
and call
its addImage method for each image to be tracked. In
addition,
each image can be assigned a unique identifier. This
identifier controls
the priority order in which the images are fetched. It can
also be used to
identify unique subsets of the images that can be waited on
independently.
Images with a lower ID are loaded in preference to those
with a higher ID number.


B. The string tokenizer class allows an application to
break a string into tokens.
The tokenization method is much simpler than the one used
by the StreamTokenizer class.
The G10SICSStringTokenizer methods do not distinguish among
identifiers, numbers,
and quoted strings, nor do they recognize and skip
comments.
The set of delimiters (the characters that separate tokens)
may be specified either at
creation time or on a per-token basis.
An instance of G10SICSStringTokenizer behaves in one of two
ways, depending on whether
it was created with the returnTokens flag having the value
true or false:
If the flag is false, delimiter characters serve to
separate tokens. A token is a maximal
sequence of consecutive characters that are not delimiters.
If the flag is true, delimiter characters are themselves
considered to be tokens. A token
is thus either one delimiter character, or a maximal
sequence of consecutive characters that
are not delimiters.


Q4. A . UDP is an abbreviation for User Datagram Protocol.
It's nothing but a
connectionless transport protocol that runs on TCP/IP's
IPThis UDP is best suited for small,
independent requests like requesting a value of a variable
etc., If the data is too large to
send (i.e many packets of data) and valuable, then UDP is
not the preferred protocol to use


B. sql exception which provides information on database
access
errors where as sql warning provides inforamation on
database access warnings

Q 5. A. In Java, you create an object by creating an
instance of a class or, in other words,
instantiating a class. To create a new object, use Java's
new operator. Here's an example using
the new operator to create a Rectangle object (Rectangle
is a class in the java.awt package).
new Rectangle(0, 0, 100, 200);
The new operator requires a single operand--a call to a
constructor method.
In the previous example, Rectangle(0, 0, 100, 200) is a
call to a constructor for the Rectangle class.

B. The Properties class represents a persistent set of
properties. The Properties can be saved to a
stream or loaded from a stream. Each key and its
corresponding value in the property list is a string.
A property list can contain another property list as
its "defaults"; this second property list is searched
if the property key is not found in the original property
list.
Because Properties inherits from Hashtable, the put and
putAll methods can be applied to a Properties object.
Their use is strongly discouraged as they allow the caller
to insert entries whose keys or values are not Strings.
The setProperty method should be used instead. If the
store or save method is called on a "compromised" Properties
object that contains a non-String key or value, the call
will fail. Similarly, the call to the propertyNames or
list method will fail if it is called on a "compromised"
Properties object that contains a non-String key

Q 6 . A. certain class at the time that it is created then
it almost certainly will still belong to that
class right up until the time that it is destroyed.An
Object on the other hand has a limited lifespan.
Objects are created and eventually destroyed. Also during
that lifetime, the attributes of the object may
undergo significant change.Classes are explained, focusing
on member data and methods


B. JDP : The Java Design Pattern API provides a lightweight
architecture for representing design patterns
as Marker Interfaces within Java applications. This allows
for richer JavaDoc documentation and opens
up the possibility of pattern-aware development tools
Command Line : Java application can accept any number
of arguments from the command line.
This allows the user to specify configuration information
when the application is launched
C. Web Sites : website (also spelled web site) is a
collection of related web pages, images, videos or other
digital assets that are addressed with a common domain name
or IP address in an Internet Protocol-based network. A web
site is hosted on at least one web server, accessible via
the Internet or a private local area network.A web page is
a document, typically written in plain text interspersed
with formatting instructions of Hypertext Markup Language
(HTML, XHTML). A web page may incorporate elements from
other websites with suitable markup anchors

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Java J2EE AllOther Interview Questions

Which of the following declaration is wrong? int i=45; float j = 45.0; double k=45.0;

5 Answers   Adobe,


what is hibernate ceteria ?

4 Answers   Fidelity,


what protocols does JNDI provide an interface to?

1 Answers  


2. Write a interface "Car" with the following methods void setName(String) String getName() void setColor(String) String getColor() void setModel(long) long getModel()

1 Answers  


What are the types of java collections? : java collections

0 Answers  






when exactly should we use throws ,and wen exactly should we use the try and catch for exceptional handling

0 Answers  


Which is the better framework for web applications, struts or spring, and why?

1 Answers   IBM, TATA,


Why do you use Context Object

2 Answers   HCL,


What is the use of log4j and how to make use of that in a application?

2 Answers  


How to use ANT?

2 Answers  


What are the different types of ways where you can iterate over a list? : java collections

0 Answers  


What are the different types of collections views being provided by the map interface? : java collections

0 Answers  


Categories