Hiiii

Hiiii

View Answers

September 16, 2008 at 5:34 PM

Hii Ragini


Abstact Class
---------------
1) Class can be specified with the keyword abstract;
2) Has atleast on abstract method and other are concrete method.
3) Can Inherit other abstract class
4) cannot be instantiated.
5) Can extend other class but not implements interface.

Interface
---------
1) class can be specified with the keyword public or default
2) All the methods are abstract
3) cannot be instantiated
4) can extends more than one interface
5) cant implement interface or extend class
6) Variable are final or static



AbstractClass
-------------

public abstract class AbstClass {

int no;
String ss;
boolean loc;
public void show(){
System.out.println("hello Ragini");
}

public abstract void aa();

}
Interface
-----------
public interface InterfaceA {
final int aa = 0;
static String ss="Raj";
public void setName();
public void show(String s);
}

September 16, 2008 at 5:37 PM


try above example by putting some methods and variable as per specification I gave you. Then you got some better idea
if you need more than that refer sunjava site.

your previous problem solve or not,

Thanks
Rajanikant









Related Tutorials/Questions & Answers:
Hiiii - Java Beginners
Hiiii - Java Beginners
Advertisements
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
Hiiii - Java Beginners
input using scanner and add/sub/mul/div of a matrix
input using scanner and add/sub/mul/div of a matrix  hiiii...... performe matrix add/sub/mul/div using scanner
RAJ9992
Servlet sending image  hiiii In my html page i use how to send this image value to servlet plz be inform me anybody
RAJ9992
Send Image Value to Servlet  hiiii In my html page i use input type=image src="" value="" name="" how to send this image value to servlet plz be inform me anybody
meenakshi
meenakshi  HIIII, Any one can help me,, I have created a form in jsp and bind it by using spring:bind in spring. I have use ModelAndView of SimpleFormController . But when i called onSubmit thn onSubmit not called
login data
login data   Hiiii Sir I am doing banking project on Asp.net i have created database on sql and also created a connection to gui but m not getting the data after login i want to show particular data for particular user means
login data
login data  Hiiii Sir I am doing banking project on Asp.net i have created database on sql and also created a connection to gui but m not getting the data after login i want to show particular data for particular user means if i
error in accessing database - JSP-Servlet
error in accessing database  hiiii im tanushri im tryng to connect my database to the servlet i hv succeeded in connectivity but im stuck to nother error called Got minus one from read call although i hv feeded data to my
error got minus one from read call - JSP-Servlet
error got minus one from read call  hiiii while connecting my servlet to database im getting error called java.sql.SQLException: Io exception: Got minus one from a read call oracle.jdbc.dbaccess.DBError.throwSqlException

Ads