ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Java J2EE AllOther
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
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.











 
 Question Submitted By :: Kushiv30@gmail.com
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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.
Answer
# 1
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
Krishna Kumar M
 

 
 
 
Other Java J2EE AllOther Interview Questions
 
  Question Asked @ Answers
 
how to deploy the web application ? Accent2
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?  2
httt method HCL2
what debugging tool that can be used to debug the java programs? Inforica1
what are callback methods? iFlex2
what is diff string and stringbuffer HCL5
How to use ANT?  1
what is filter ? SolutionNET1
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
what about web architecture? HCL1
VSS Objectives  1
What is Visual Source Safe(source control Tool)?  1
what is acl(access control list)? HCL1
what is the difference between banking and insurance domain?  1
What is a constructor?  2
How to implement or use the singleton class in java?  2
What is the difference between Eclipse and MyEclipse?  2
What is need of DAO? Write one simple DAO example? IBM1
what is difference between business deligate and session facade ? Fidelity2
What is difference between Application Server and Web Server?  1
 
For more Java J2EE AllOther Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com