Interface

Ø      Interfaces are syntactically similar to classes but they tack instance variables, and their methods are declared without any body.

Ø      Using interface keyword,you can fully abstract a class interface from its implementation.

      (0)
By Anjali   vaghela  in Java  on 3/24/2015 11:53:05 PM   Read more...



synchronization

When we start two or more threads within a program, there may be a situation when multiple threads try to access the same resource and finally they can produce unforeseen result due to concurrency issue. For example if multiple threads try to write within a same file then they may corrupt the data because one of the threads can overrite data or while one thread is opening the same file at the same time another thread might be closing the same file. So there is a need to synchronize the acti...............


(0)
By Milan   Pandya  in Java  on 7/15/2015 2:22:05 AM   Read more...


Applet

An applet is a little application. Prior to the World Wide Web, the built-in writing and drawing

programs that came with Windows were sometimes called "applets." On the Web, using Java,

the object-oriented programming  language, an applet is a small program that can be sent along

with a Web page to a user. Java applets can perform interactive animations, immediate

calculations, or other simple tasks without having to send a user request bac...............


(0)
By paul   gamit  in Java  on 3/27/2015 12:18:44 AM   Read more...


Drawing a Happy Face Applet

 

 

import java.awt.* ;
import java.applet.* ;
/*<applet code="App7" height=700 width=900>
</applet>*/
public class App7 extends Applet
{
public void paint(Graphics g)
{
    g.drawOval(40,40,120,150);   //head
    g.drawOval(57,75,30,20);     //left eye
    g.drawOval(110,75,30,20);    // Right eye
   &...............


(0)
By Daniel   Gamit  in Java  on 5/13/2015 1:04:34 AM   Read more...