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 db client?

488


Why did my jdbc code throw a rollback sqlexception?

502


How to use JDBC to connect Microsoft Access?

593


What does executeupdate return in jdbc?

508


How can I manage special characters when I execute an insert query?

512






What are the flow statements of jdbc?

517


Why we use jdbc instead of odbc?

494


What is the meaning of batch updates?

556


What types of DataSource objects are specified in the Optional Package?

503


What is drivermanager in jdbc?

538


What is the difference between executing, executequery, executeupdate in jdbc?

557


How can we execute stored procedures using callablestatement?

465


Does jpa use jdbc?

487


How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?

606


What are the advantages of using preparedstatement in java?

547