Is Java is 100% pure OOPS? Explain?
Answers were Sorted based on User's Feedback
Answer / ganapathy
it is not pure because java does not support multiple inheritance
it supports primitive data type such as int,byte,long etc to be used,which r not objects.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sadhu charan paikaray,sit,oris
Java is a OOP language and it is not a pure Object Based
Programming Language
Many languages are Object Oriented. There are seven
qualities to be satisfied for a programming language to be
pure Object Oriented. They are:
1. Encapsulation/Data Hiding
2. Inheritance
3. Polymorphism
4. Abstraction
5. All predifined types are objects
6. All operations are performed by sending messages to
objects
7. All user defined types are objects.
JAVA is not because it supports Primitive datatype such as
int, byte, long... etc, to be used, which are not objects.
Contrast with a pure OOP language like Smalltalk, where
there are no primitive types, and boolean, int and methods
are all objects.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ji
Java is 100% pure OOP,,b primitive data
types are treated as object .this concept is called wrapper
class
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rupali
no. java is not 100% pure OOPS.Bcz:
1). it does not support multiple inheritance and pointers
which are the concepts of oops.
2). it provides primitive datatypes which are not treated
as objects.
3). Bcz of static keyword.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kiran
not support pointers,multiple inheritance .
it allows primitive data types ...
it's supports interface
It allows static methods to call without creating the
instance
99.65% opp's
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sumit
NO, java is not 100% oops because
1) it doesn't support directly multiple inheritance(using interface for multiple inheritance)
2) we cannot overload operators.
3) it allows static methods to cal without creating the instance.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ramesh hurakadli
Java is not pure Object Oriented Programming
language,Because it supports primitive data types.so java is
not pure Object Oriented Programming language.Smalltalk is
the only language which is pure Object Oriented Programming
language.Which languages does supports primitive data types
those are not pure Object Oriented Programming language's.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sathish kumar.s
1.In java everthing is not an object.
2.because we are using the pritive data types to make a task
(program).
E.g, in addition of numbers, we are declaring the data type
as int, not an object. so it's not 100% pure OOP's.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / prashanth
java is not 100% oops because it is supporting the primitive data types
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / priyanka
Java is not 100% pure oops lang. as it doesnt support multiple inheritance cconcept.....but also it supports multiple inheritance through interface...but interface is not the part of oops.....
| Is This Answer Correct ? | 0 Yes | 0 No |
Why stringbuffer is faster than string?
How can you read an integer value from the keyword when the application is runtime in java? example?
Define interface in java?
Explain methods specific to list interface?
The following program reads data (details of students) from a file named students.txt and converts it into e-mail addresses. The results are written to a file named studentemail.txt. students.txt consists of a number of lines, each containing the data of a student in colon delimited format: Last Name:First Name:Student Number Each input record is converted to an e-mail address and written to studentemail.txt in the following format: the first character of the last name + the first character of the first name + the last four digits of the student number + “@myunisa.ac.za” import java.io.*; public class EmailConverter { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new FileReader ("students.txt")); PrintWriter output = new PrintWriter(new FileWriter ("studentemail.txt")); String line = input.readLine(); while (line != null) { // Extract the information for each student String[] items = line.split(":"); // Generate the email address String email = "" + items[0].charAt(0) + items[1].charAt(0) + items[2].substring(4,8) + "@myunisa.ac.za"; email = email.toLowerCase(); // Output output.println(email); line = input.readLine(); } input.close(); output.close(); } } Rewrite the class so that it handles possible errors that may occur. In particular, it should do the following: • It should catch at least three appropriate exceptions that might occur, and display suitable messages. • At this stage, the program will not run correctly if there is an empty line in the input file. Change the program so that if an empty line is encountered, an exception is thrown and the empty line is ignored. This exception should be handled with the display of a suitable error message. • Before the e-mail address is added to the output file, check if the student number has 8 digits. If not, throw an InvalidFormatException (which the program should not handle itself)
what is Hashmap & Hashtable wirh example?
What is java used for on a computer?
write a program to create an arraylist with string(add,remove) operation.and value should be enter through keyboard.
What are the properties of thread?
What is the size of int?
Which containers use a FlowLayout as their default layout?
What's the access scope of protected access specifier?