answersLogoWhite

0


Best Answer

One of the main goals kept in mind while Java was being developed was that they wanted it to be like C++, but without all the features which make the language overly complex and messy. These features include things like (true) multiple inheritance, operator overloading, and friend functions.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

Because Friend function support to access private variable of another class. so security purpose java wont allow.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Java's package access protection exists to allow friend-like behaviour between classes.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why java does not support friend function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does java supports friend function?

I don't believe that Excel has such a function; you'll have to write one yourself.


What does java not support?

Java does not support multiple inheritance.......


Does a DSI have java?

No it does not support Java


Does java support call by reference?

No , Java does not support call by reference.


Does Java support copy constructor?

No. Java does not support copy constructor


How does java support the concept of destructer in java?

In Java, Java does support the concept of destructor, it's done via special method finalize.


What is function in java terminology?

In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.


Does the G1's browser support Java and Flash?

No. I have read that it will support Java. I believe that it does not support flash ATM.


What are the background pointers in java?

Java does not support pointers.


What is Java Support Systems?

Java support system includes: · Applets · Servlets · Java Beans · EJB · JSP · XML · SOAP · CORBA


Can you use pointers in java?

Java does not support Pointers and hence you cannot use it in Java.


Is main a predefined function in java?

No. It is a user defined function which the person who is creating the java class has to code by himself.