Does Java support multiple Inheritance?

Answer Posted / gyana

No actually java doesn't support multiple inheritance.But
we can use this by using Interface in java.

for example Class x,implements y, implements z.

here x is the main class and the two interface y and z
implements it in its program.y and z are two interfaces not
classes.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you make a constructor final in Java?

628


Can we print null in java?

574


Can a main method be overloaded?

574


What is currentthread()?

575


What is meant by collection in java?

553






What is early binding and late binding in java?

595


For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.

1585


What is math in java?

568


How can we find the sum of two linked lists using stack in java?

574


What do you mean by buffering?

558


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

1611


How listener identify that the event came from a particular object?

1472


Explain the difference between protected and default access.

518


What is ‘has a’’ relationship in java?

726


How to store image in arraylist in java?

512