Can any one tell me how Java is purely an Oops language
Answers were Sorted based on User's Feedback
Answer / ranganathkini
I VERY STRONGLY DISAGREE WITH THE PREVIOUS ANSWER!
JAVA IS NOT A PURE OOPS LANGUAGE!
Just taking the previous answer's context that every thing
in Java is an object itself is wrong. Java makes strong
distinction between primitive data types and reference
types. Hence the primitive data types are not treated as
objects.
Java provides wrapper classes that can be used to "box"
primitive data types and use them as objects.
Hence this defeats one of the main point of OOPS languages
that everything u use must be an object.
PLEASE PRACTICE CAUTION WHEN U POST ANSWERS!
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / nils
java is pure oops language means every thing it represent
that is in the form of classes and objects.
even data types in the java are the object of
class "class" for more details refer suns java api
documentation in java.lang.class.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sowmiya
java is purely a oops language...
because t supports all basic concepts f oops lik
1.inheritance
2.polymorphism
3.classes
3.objects
4.message binding
etc..
| Is This Answer Correct ? | 3 Yes | 2 No |
What are the methods of validating whether the form is secure?
Is there any difference between javascript and jscript?
i want to display time using hidden variable in a page,but when i click button that page that hidden variable loosing its value.i m sending the code also. <script type="text/javascript" language="javascript"> var tick=0; window.onload = function() { //debugger if(document.getElementById("hdnTicker").value != "") tick = parseInt(document.getElementById("hdnTicker").value); setInterval("Timer()",1000); } function Timer() { //debugger document.getElementById("hdnTicker").value = tick++; //alert(document.getElementById("hdnTicker").value); document.getElementById("lblTimeSpent").innerHTML = "0." + tick; if(tick == 30) { //message or redirect to result window alert('time is out'); //clearTimeout(); } } </script> <form id="form1" runat="server"> <div> <table> <tr> <td> <asp:Label ID="lblTimeSpent" runat="server" Visible="true" ForeColor="Blue" ></asp:Label> </td> <td> <%-- <asp:textbox EnableViewState="true" id="hdnTicker" runat="Server" style="visibility:hidden"></asp:textbox>--%> </td> </tr> <tr> <td> <asp:Button ID="btn" runat="server" Text="hi" OnClick="btn_Click" Height="30px" Width="60px" /> </td> </tr> </table> <%--<asp:HiddenField ID="txt" runat="server" Visible="true" />--%> </div> </form> <input type="hidden" id="hdnTicker" name="hdnTicker" enableviewstate="true" runat="server" />
What is called variable typing in javascript?
What is a fixed-width table and its advantages?
What is the role of javascript in html?
How do you add an element at the beginning of an array?
What is escape & unescape String functions in JavaScript?
What is isnan in javascript?
What is scope chain in javascript?
What is a function constructor?
Event bubbling and Event Capturing in JavScript?