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 are the packages are used in jdbc?

799


What are drivers available?

800


What is JDBC DataSource and what are it’s benefits?

756


What do you mean by two phase commits?

769


What is the return type of execute, executequery and executeupdate?

895


How are jdbc statements used?

730


What is the execute method in java?

762


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

685


Explain jdbc savepoint?

762


What is JDBC RowSet? What are different types of RowSet?

798


What is jdbc explain?

696


What is an encrypted internet connection?

704


Why would you use setautocommit(false) in jdbc?

921


How can you load the drivers?

751


What is the different between ResultSet and RowSet?

742