JAVA

JAVA

View Answers

August 29, 2009 at 4:08 PM

Hi Friend,

1)Layout Manager-It is an interface that determines the size and position of the component within the container using the following classes:
* BorderLayout
* BoxLayout
* CardLayout
* FlowLayout
* GridBagLayout
* GridLayout
* GroupLayout
* SpringLayout

2)Dynamic Method Dispatch-It is a technique which can be used to execute the overridden method at runtime or you can say that it is the process through which Java Runtime system determines which method implementation is to call in an inheritance hierarchy.

3)Thread Synchronization-Threads commonly share the same memory space area, hence they can share the resources. Threads commonly communicate by sharing access to fields and the objects reference fields refer to.But this communication results to some errors like thread interference and memory consistency errors. The synchronization tool avoid this problem by allowing one thread to access the shared resources at a time to make the program thread safe.

4)Abstract Class-An Abstract class is similar to an interface in some aspects. It cannot be instantiated but it can be extended.it may or may not include abstract methods.Any class that extends the abstract class has to provide the implementation to the abstract methods. Hence these classes can be used as a skeleton to similar classes where some common functionality may be required. Such functionality can also be embedded into these classes.

5)Method Overriding-when a method in a subclass has the same name and type signature as a method in its superclass, then the method in the subclass is said to override the method in the superclass.This is said to be Method Overriding.

6)Throws keyword-When we know that a particular exception may be thrown or to pass a possible exception then we use throws keyword. Here the Java compiler knows about the exceptions thrown by some methods so it insists us to handle them. It takes the arguments as a list of the objects of type java.lang.Throwable class.When we use the throws keyword with a method it is known as ducking.

7)String Class- The String class represents character strings. All string literals in Java programs are implemented as instances of this class. The String class provides methods for examining individual characters of the sequence, comparing strings, searching strings, extracting substring, copy the string,changing the case of string like uppercase to lowercase and lowercase to uppercase,replacing the string,concatenating the string etc.Strings are constant and their values cannot be changed after they are created.

8)Static Members-The static members can be accessed before any objects of its class are created, and without reference to any object.A static variable is shared by all the instances of that class. A static method cannot access non-static/instance variables, because a static method is never associated with any instance.A static method can access all the static data.

9)Byte Code-Byte codes are the machine language of the Java virtual machine. When a JVM loads a class file, it gets one stream of byte codes for each method in the class. The byte codes streams are stored in the method area of the JVM. The byte codes for a method are executed when that method is invoked during the course of running the program. They can be executed by intepretation, just-in-time compiling, or any other technique that was chosen by the designer of a particular JVM.

Thanks










Related Tutorials/Questions & Answers:
java
java  diff bt core java and java
java
java  what is java
Advertisements
java
java   why iterator in java if we for loop
Java
Java   Whether Java is pure object oriented Language
JAVA
JAVA  how the name came for java language as "JAVA
java
java  explain technologies are used in java now days and structure java
java
java  different between java & core java
java
java  is java open source
java
java  what is java reflection
java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java
java
java  why to set classpath in java
java
java  RARP implementation using java socket
java
java  sample code for RARP using java
Java
Java  how to do java in command prompt
java
java  how use java method
java
java  is java purely object oriented language
java
java  why multiple inheritance is not possible in java
java
java  give a simple example for inheritance in java
java
java  give a simple example for inheritance in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java   What is ?static? keyword
java
java  Does java allows multiline comments
java
java  Write a java code to print "ABABBABCABABBA
java
java  write a program in java to acess the email
java
java  send me java interview questions
java
java  what are JAVA applications development tools
Java
Java   Whether Java is Programming Language or it is SOftware
java
java  explain object oriented concept in java
java
java   difference between class and interface
Java
Java  how to draw class diagrams in java
java
java  write a java program using filenotfoundexception
java
java  how to edit text document by using java then how to edit starting and ending of text document by using java
java
java  different between java & core java print("code sample
java
java  how can use sleep in java   which book learn of java language
java
java  hi im new to java plz suggest me how to master java[email protected]
java
java   How to set java Policy for applet using jdk 6
java
java pattern code for a given words  java pattern code for a given words pattern
java
java  dear, i want a field for date picker using java/java script
java
java  create java program for delete and update the details,without using database, just a normal java program
java
java  why methods in java raise exceptions   Have a look at the following link: Java Exceptions
java
java code to search the nodes  how to write the java code to search the nodes using routers
java
java online telephone directory  i need coding for online telephone directory..by using java....pls help me
java
java  different between java & core java print("code sample
java
java  how to invoke one chart java file from another java file
java
java  how to prepare the java   Hi Friend, If you want to learn how to install java, creating and running a java program then go through the following links: http://www.roseindia.net/java/beginners/index.shtml http
java
java  java swing   Swing is a principal GUI toolkit for the Java programming language. It is a part of the JFC (Java Foundation Classes), which is an API for providing a graphical user interface for Java programs
java
java  what is the need of java if java is not there what will happen... work unless you have Java installed, and more are created every day. Java... to scientific supercomputers, cell phones to the Internet, Java is everywhere! http

Ads