Category: Core Java

Method Overriding 0

Method Overriding

In method overriding we have same function name, same return type and same number & types of arguments in super class and sub classes. These functions are called in different time depending on their...

Polymorphism 0

Polymorphism

Polymorphism means one thing but several forms. There are two types of polymorphism in java. 1.Compile time 2.Run time. 1.Compile time polymorphism also known as static binding.Here we bind the proper member with the...

What is an Inheritance? 0

What is an Inheritance?

The most important feature of Object Oriented Language is the Inheritance. It useful to use the same thing in different places without creating the same things again & again.By Inheritance We can achieve this....

J2SE Books 0

J2SE Books

There are some J2SE books given below 1. Java quick reference www.u.arizona.edu/~jtmurphy/H2R/java.htm 2.Generics in Java 72.5.124.55/j2se/1.5/pdf/generics-tutorial.pdf 3. Java Basics www.cs.usfca.edu/~parrt/doc/java/JavaBasics-notes.pdf 4.Java All basics http://www.leepoint.net/JavaBasics/index.html

History of Java 1

History of Java

 We would talk about history of Java, but lets see what is Java. Java is an object oriented programming language. Recently it has so much demand. Java is easy to use because of its...

TextArea.AccessibleAWTTextArea 0

TextArea.AccessibleAWTTextArea

java.awt Class TextArea.AccessibleAWTTextArea java.lang.Object javax.accessibility.AccessibleContext java.awt.Component.AccessibleAWTComponent java.awt.TextComponent.AccessibleAWTTextComponent java.awt.TextArea.AccessibleAWTTextArea   protected class TextArea.AccessibleAWTTextArea extends TextComponent.AccessibleAWTTextComponent This class implements accessibility support for the TextArea class. It provides an implementation of the Java Accessibility API appropriate to...

Transfer file with FTP 0

Transfer file with FTP

Program Code to transfer file with FTP, public void sendFile(String fileName,String cHost,int cPort)throws Exception{ Socket sSocket = new Socket(cHost,cPort); OutputStream sOS = sSocket.getOutputStream(); File file = new File(fileName); int length = (int)file.length(); FileInputStream fis...

FTP in Java 0

FTP in Java

The reference specification for FTP is Request for Comments: 959 (RFC959). Sun Microsystems provides an RFC959 implementation that is FTP in Java in the JDK, but it is internal, undocumented, and no source is...

XAException 0

XAException

The XAException is thrown by the Resource Manager (RM) to inform the Transaction Manager of an error encountered by the involved transaction. javax.transaction.xa Class XAException java.lang.Object java.lang.Throwable java.lang.Exception javax.transaction.xa.XAException  

UserException 0

UserException

UserException is the root class for CORBA IDL-defined user exceptions. All CORBA user exceptions are checked exceptions, which means that they need to be declared in method signatures. org.omg.CORBA Class UserException java.lang.Object java.lang.Throwable java.lang.Exception org.omg.CORBA.UserException