is java pure object oriented or not ?

Answer Posted / arun kumar samal

no, java is not pure object oriented language due to in java
the primitives data
types(byte,short,int,long,float,double,char,void)are not
objects.to use this type we need each corresponding Wapper
implementation.
e.g:
class A{
Integer i;
public static void main(String... s){
A a=new A();
a.i=new Integer(10);//Boxing before javaSE 5.0
a.i=10;//AutoBoxing from javaSE5.0
}

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between jdbc and odbc?

695


How the JDBC application works?

715


Which interface is responsible for transaction management in jdbc?

640


What are the different types of JDBC drivers?

798


What are the new features available in jdbc 4.0?

712


Explain about the Try Block?

745


Can I get a null resultset?

733


What is a jdbc driver and how many jdbc drivers are available?

774


Is jdbc connection secure?

679


Write an sql to find all records having all numeric characters in a field ?

727


Explain about Join?

792


What is jdbc odbc bridge?

697


Does jdbc use ssl?

684


What is type 4 jdbc driver?

656


Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?

670