Source One Educational Society
Home | OS Install | MS-Office | Photoshop | SQL | Networking | HTML | Java | Model Papers | FAQ's | Health Tips | News | Jobs | Fun SMS
Quick Links
Java FAQ's
XML FAQ's
.Net FAQ's
Javascript FAQ's
 
 
 
 
JAVA FREQUENTLY ASKED QUESTIONS
 
 

What platforms is the Java-technology software available on?

Ans:) Sun provides ports of the Java Platform for Windows 95, Windows 98, Windows NT, Windows 2000, Solaris-SPARC, Solaris-Intel, and Linux.

 
What are the types of java programs?

Ans:) Java programs are rwo types:

  • Applications
  • Applets
Applications are stand alone programs,like any program written using high level languages.Applications can be executed from any computer with a Java interpeter and
are ideal for developing software.
 
What is the relationship between Java and HTML?

Ans:) APPLETS.

Applets relate the web scripting language HTML with Java. ( HTML contains the tags <applet> and </applet>).

 
Is Java case sensitive?What is the case for Java keywords?

Ans:) YES. JAVA keywords are of LOWERCASE.

 
What is an object?

Ans:) An object is an real time entity that is characterised by unique property.Object oriented programming models the real world.Every thing in the world can be modelled as an object.

For example: a person is an object, a tree is an object and a window icon is an object etc..

Real-world objects share two characteristics:

They all have 'state' and 'behavior'.

For example, dogs have state (name, color, breed, hungry) and behavior (barking, fetching, wagging tail).

Bicycles have state (current gear, current pedal cadence, two wheels, number of gears) and behavior (braking, accelerating, slowing down, changing gears).

  • Objects are basic runtime entities in an object-oriented system.
 
what is a java object?

Ans:) A java object is a runtime entity that has properties and behaviors.Properties are described by using data and behaviors are defined by using methods.

Thus ,an object is a collection of data members and member functions.

objects may also represent user-defined data types such as vectors and lists.

 
How I can find the class of an object?

Ans:) That's easy. Suppose you've got some objects stored in a collection,like a Vector or a List of some sort. You might want to check to see if an individual object belongs to a particular class. The instance of operator is used in this case.

For example:-

if (obj instanceof MyClass)
{
MyClass.doSomething();
}
else
{
// handle object differently .......
}

 
Quick Links
 
 
 
 
Home  |  Aboutus  |  Post Your Content  |  Tell a Friend  |  Contact us  |  Sitemap
© 2009 365edu. All Rights Reserved. Site by 365edu. Best view in 1024x768 resolution.