class add /*add.java */
{
public static void main(String args[])
{
int a=5,b=10,c;
c=a+b;
System.out.println("addition of a and b is "+c);
}
}
output:
D:\cjuschools>javac add.java
D:\cjuschools>java add
addition of a and b is 15
Next
oops through java,inheritance,interface,package,super keyword, program demonstrating the use of super keywork,abstract class,static,main,awt,swings,jtab,layout,panel,applet,param,Frame,JFrame, swingutilities.invokeLater,swingutilities.invokeanwait,multithreading,multiprocesing,start(),init() paint(),adapter class,inner class,annonymous inner class,outer class,packages,friendly, constrcutors,destructors,garbage collector,inheritance,encapusulation,abstraction,bytecode,compiler,interpreter,jdbc,jsp pages,exception handling
No comments:
Post a Comment