For a pure object oriented language,there should be 6 features available with it.They are:- 1.Encapsulation/Information Hiding 2.Inheritance 3.Polymorphisms/Dynamic Binding 4.All pre-defined types should be Objects 5.All operations performed by sending messages to Objects 6.All user-defined types are Objects But in java, features 4 & 5 are lacking. That'swhy it is not 100%pure OO..
Yes java is object oriented language,because it supports run time polymorphisms and dynamic binding.As most of the concepts achieve run time polymorphisms and dynamic binding.thus java is object oriented language.
Object oriented paradigm of programming says that everything in a programming world should felt like object mean :- "Abstract and Encapsulated" The paradigm is not completely satisfied by Java. Some of the feature that make such violation are 1. Existence of primitives which are manipulated in ordinary style . 2. Existence of mathematical operator handled also not like objects. These two essential characteristics make Java somewhat what is the question. But here again Java is big winner to make presence of wrapper classes to wrap up this difficulty or adaption. Moreover in Java 1.5 you will feel more free because of auto-boxing feature that make auto conversion of object to primitive and primitive to object.
Java is not a fully object oriented language because it does not support multiple inheritance directly.But it does so by using the concept of interfaces.
A language is said to be fully object oriented if it supports classes,objects,inheritance and polymorphisms.For example C++ supports full fledged feature of inheritance and all the types of inheritances(single,multilevel,multiple,hierarchical and multi path inheritances), and if we take the polymorphisms C++ supports static binding and operator overloading which come under static polymorphisms where as Java does not support operator overloading.
Java does not support multiple inheritance.Though it supports through interfaces and also Java does not support meta classes that is classes above classes so Java is not a purely object oriented language.
Java is purely objected oriented programming language.Why because in for class we can create at least one object.Object is the super class of all classes in Java.In oops we can deal with classes and objects .so this is the reason for Java is purely oops language.
Primitive Data Types : byte,shot,int,long,float,double,char,boolean. Due to dependencies of above data types we say that java is not pure object oriented programming language
java is not pure object oriented language, because in object oriented concept every method is called throw its objects.In java main()is also a method, but without creating object we accessing main method... by using the key word static we can access any method without creating object...so java its not pure object oriented language.
1)What are the actual functions of JVM? 2)When to use a class and when to use an Abstract class? 3)what is the use of constructors other than creation of objects? 4)when to use constructors? 5)when to use Interface? 6)why java does not support pointers? 7)why multiple inheritance is not possible in java without using Interfaces?
While developing one in JSP page we are sending request to Struts frame work.If we click two times submit button then First time only it should accept request and second time should reject that request in struts frame work.
How we can do that in controller itself...I am waiting for your Response...