answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

Benefit of inner class in java?

Inner classes are very useful for classes that are written specifically to be used with the encompassing class. A good example of this would be a LinkedListNode class being part of a LinkedList class: public class LinkedList { private LinkedListNode root; private class LinkedListNode { private Object data; private LinkedListNode nextNode; } } No class except your LinkedList class needs to know anything about the LinkedListNode class. So we hide it so no one else needs to worry about what it does.


Why does java not support multiple inheritence?

The superclass of all the classes in Java is Object,So any class we created is a instance of Object. Assume there is a class Father and Class Uncle,Now the class called child will have to inherit the features of father and Uncle which inturn will have some common features.So the child class would not be sure of whether to inherit the common feature from Father or uncle. This is known as the diamond problem - http://en.wikipedia.org/wiki/Diamond_problem There is nothing like virtual in Java


How do you square root in java?

knioubuhy yig hnm vuigvgh ujhb jhbihjbnihkjlkmmnlk


Which type of inheritance does not support by java?

Desoola Anil Kumar, Java Faculty: There are 5 types of Inheritance. 1.Single inheritance, 2.Multiple inheritance, 3.Multilevel Inheritance, 4. Hirarichal inheritance and 5. Hybrid inheritance. Java supports multi level inheritance and hirarichal inheritance.


What are math functions in java?

Math is a pre-defined class in the package java.lang. It contain various predefined functions in it that help the users to carry out various mathematical operations in their programs. Various Math Functions are:: Math.pow(x,y) => x^y Math.sqrt(x) => Square root of 'x' Math.tan(x),sin(x),cos(x) => tan, sin, cos of 'x' respectively there are also other functions like Math.ceil,Math.floor,Math.mod,etc.

Related Questions

Benefit of inner class in java?

Inner classes are very useful for classes that are written specifically to be used with the encompassing class. A good example of this would be a LinkedListNode class being part of a LinkedList class: public class LinkedList { private LinkedListNode root; private class LinkedListNode { private Object data; private LinkedListNode nextNode; } } No class except your LinkedList class needs to know anything about the LinkedListNode class. So we hide it so no one else needs to worry about what it does.


Why java doesnot support multiple inheritence?

Multiple inheritance:The concept of Getting the properties from multiple class objects to sub class object with same priorities is known as multiple inheritance.Java Doesn't Support multiple Inheritance.Diamond problem:In multiple inheritance there is every chance of multiple properties of multiple objects with the same name available to the sub class object with same priorities leads for the ambiguity.We have two classes B and c which are inheriting A class properties.Here Class D inheriting B class and C class So properties present in those classes will be available in java.But both classes are in same level with same priority.If we want to use show() method that leads to ambiguityThis is called diamond problem.Because of multiple inheritance there is chance of the root object getting created more than once.Always the root object i.e object of object class hast to be created only once.Because of above mentioned reasons multiple inheritance would not be supported by java.Thus in java a class can not extend more than one class simultaneously. At most a class can extend only one class. source: instanceofjavaforus.blogspot.in/2014/12/why-java-does-not-supports-multiple.html


Why does java not support multiple inheritence?

The superclass of all the classes in Java is Object,So any class we created is a instance of Object. Assume there is a class Father and Class Uncle,Now the class called child will have to inherit the features of father and Uncle which inturn will have some common features.So the child class would not be sure of whether to inherit the common feature from Father or uncle. This is known as the diamond problem - http://en.wikipedia.org/wiki/Diamond_problem There is nothing like virtual in Java


What is multiple inheritance?

A class which inherits from more than one super-classes is said to implement multiple inheritance.For example, a simple class hierarchy might define a vehicle class. Decedents of the vehicle class could be car, ship and aeroplane classes. Another root-level class could be the class of landbound things. Using multiple inheritance, the car class might be derived from both vehicle and landbound things.


How do you square root in java?

knioubuhy yig hnm vuigvgh ujhb jhbihjbnihkjlkmmnlk


How do you write a java program to find the square root of a number?

You can use the Math.sqrt() method.


What is the minimum space utilization of the B tree with the exception of the root?

50 percent


What is the minimum space utilization for a B tree index with the exception of the root?

50 percent


Which type of inheritance does not support by java?

Desoola Anil Kumar, Java Faculty: There are 5 types of Inheritance. 1.Single inheritance, 2.Multiple inheritance, 3.Multilevel Inheritance, 4. Hirarichal inheritance and 5. Hybrid inheritance. Java supports multi level inheritance and hirarichal inheritance.


Which math function is used to find the square root of a number using java?

Math.sqrt(number) function is used to find the square root of a number.. try it


What are math functions in java?

Math is a pre-defined class in the package java.lang. It contain various predefined functions in it that help the users to carry out various mathematical operations in their programs. Various Math Functions are:: Math.pow(x,y) => x^y Math.sqrt(x) => Square root of 'x' Math.tan(x),sin(x),cos(x) => tan, sin, cos of 'x' respectively there are also other functions like Math.ceil,Math.floor,Math.mod,etc.


Relating to the highest classes of the Roman people is the root word for What?

Classic