Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Why java will not support multiple inheritance?

843830Dec 23 2004 — edited Jan 1 2005
Why java will not support multiple inheritance directly. Why we are forced to use interfaces if we want to implement multiple inheritance. What is the main use of the interface apart from multiple inheritance?

Comments

mNem
Answer

with t (vCampo1) as

(

select

'<?xml version="1.0" encoding="UTF-8"?>

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">

<S:Body>

<ns2:ConsultaEEHResponse xmlns:ns2="http://jeta.servicios.ws/">

<return>

<codigoError>6</codigoError>

<mensaje>El Banco se encuentra Inactivo para Recaudo.</mensaje>

<resultado>false</resultado>

</return>

</ns2:ConsultaEEHResponse>

</S:Body>

</S:Envelope>'

from dual

)

select a.*

from t,

XMLTABLE(

    xmlnamespaces(

      'http://schemas.xmlsoap.org/soap/envelope/' as "S",

      'http://jeta.servicios.ws/'                 as "ns2"

    ),

     '/S:Envelope/S:Body/ns2:ConsultaEEHResponse/return'

     passing xmltype(vCampo1)

     columns

     codigoError varchar2(5) PATH 'codigoError',

     mensaje varchar2(200) PATH 'mensaje',

     Resultado varchar2(5) PATH 'resultado'

)a

;

Marked as Answer by jeffreehy-JavaNet · Sep 27 2020
jeffreehy-JavaNet

Yes. Thank you very much, I try similar way, but I missed one ")" so a got compilation error. Some time you got the answer in front of you but got blind. Appreciate your help.

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 29 2005
Added on Dec 23 2004
6 comments
316 views