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

What is the difference between comparable and comparator in java.util pkg?

0 Answers  


how to deploy the web application ?

2 Answers   Accent,


How to call the m1() method of Base class in below snippet ? class Base { public void m1() { System.out.println("Base m1 "); } public void m2() { System.out.println("Base m1 "); } } ====================== class Derived extends Base { public void m1() { System.out.println("Derived m1"); } public void m3() { System.out.println("Derived m3"); } public static void main(String[] args) { Base ob=new Derived(); ob.m1(); //System.out.println("Hello World!"+ob.m1()); } }

6 Answers   Cap Gemini, TCS,


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

0 Answers   TCS,


Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

0 Answers  






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.

1 Answers  


I have include a jsp page by using <jsp:include page="/.../xyz.jsp"/> The thing is that the xyz.jsp page has its submit button.When i click on that button the whole main page get refreshed.But i want to refresh only the xyz.jsp page.How could i achive it so that i can only refresh the xyz.jsp not the main page page?

4 Answers  


httt method

2 Answers   HCL,


What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose. Infosys 2 In which way does a Primitive data type is passed ? Sun- Microsystems 4 what is the use of declaring constructor as private? Sai- Softech 5 what is difference between global methods and local methods? 1 What is meant by class loader and how many types are there? Apple 1 what is meaning of JIT? 4 What is an abstract class? Wipro 5 what is filters and its use? Virtusa 2 why is multiple inheritance not allowed in java? Elementus-Technologies 7 Differences between jdk 1.4 and 1.5 Wipro 4 is JVM platform dependent or independent..? IBM 6 what is main purpose of abstract class? 5 what is difference between colection and collections? Tech-Mahindra 11 What error occurs if a try-catch-finally statement sequence does not have a catch clause? 2 Explain the difference between scrollbar and scrollpane? 1 Explain the differences between public, private, protected and static? 4 Explain the difference between getAppletInfo and getParameterInfo? 1 Is Cegonsoft Pvt.Ltd. a good Institute? 4 Why only one Class is public in one file? Explain in details. Thanks in Advance. 11 Which method will get invoked first in a stand alone application?

0 Answers  


Runining mutiple tomcat server in a single machine is possible Yuo wil have to duplicate configuration with different port numbers

2 Answers   HCL,


i need java 1+ experience resume on java developer kindly send me my mail id:srikanthreddy1.marla@gmail.com

1 Answers  


What do you understand by synchronization? Why is it important?

0 Answers  


Categories