Sign Up to our social questions and Answers to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers to ask questions, answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This promise is immense; every day and every night, we are trying our best to fulfill it by helping others, leaving something worthwhile behind us, and living for a purpose that is "Enrich & Spread knowledge everywhere".
What is the difference between i++ and ++i in Java?
They both increment the number with value 1 but but ++i increment the number before the current expression is evaluted, whereas i++ increment the number after the expression is evaluated for example int i=5; int z=i++; //z equals 5 here int x=++i; //x equals 6 here
They both increment the number with value 1
but but ++i increment the number before the current expression is evaluted, whereas i++ increment the number after the expression is evaluated
for example
int i=5;
int z=i++; //z equals 5 here
int x=++i; //x equals 6 here
Difference between staticmethod and classmethod in python ?
Maybe a bit of example code will help: Notice the difference in the call signatures of foo, class_foo and static_foo: class A(object): def foo(self, x): print "executing foo(%s, %s)" % (self, x) @classmethod def class_foo(cls, x): print "executing class_foo(%s, %s)" % (cls, x) @staticmethod def statRead more
Maybe a bit of example code will help: Notice the difference in the call signatures of
foo
,class_foo
andstatic_foo
:Below is the usual way an object instance calls a method. The object instance,
a
, is implicitly passed as the first argument.With classmethods, the class of the object instance is implicitly passed as the first argument instead of
self
.You can also call
class_foo
using the class. In fact, if you define something to be a classmethod, it is probably because you intend to call it from the class rather than from a class instance.A.foo(1)
would have raised a TypeError, butA.class_foo(1)
works just fine:One use people have found for class methods is to create inheritable alternative constructors.
With staticmethods, neither
self
(the object instance) norcls
(the class) is implicitly passed as the first argument. They behave like plain functions except that you can call them from an instance or the class:Staticmethods are used to group functions which have some logical connection with a class to the class.
foo
is just a function, but when you calla.foo
you don’t just get the function, you get a “partially applied” version of the function with the object instancea
bound as the first argument to the function.foo
expects 2 arguments, whilea.foo
only expects 1 argument.a
is bound tofoo
. That is what is meant by the term “bound” below:With
a.class_foo
,a
is not bound toclass_foo
, rather the classA
is bound toclass_foo
.Here, with a staticmethod, even though it is a method,
a.static_foo
just returns a good ‘ole function with no arguments bound.static_foo
expects 1 argument, anda.static_foo
expects 1 argument too.And of course the same thing happens when you call
static_foo
with the classA
instead.source: stackoverflow
author: unutbu
How to find dbc file in oracle apps ?
Hello @chandra to find dbc file in release 11i $FND_TOP/secure and to find dbc file in release 12 $INST_TOP/appl/fnd/12.0.0/secure hope this help.
Hello Chandra
to find dbc file in release 11i
and to find dbc file in release 12
hope this help.
See lessWhat does this sign operator “+=” do in java?
Hi @Olivier, it common that z += 5.6 are equivalent to z = z + 5.6, it's one the assignment operators it takes the value of z then add 5.6 to it and at the end store the new result into z ex: double z = 5.5 z += 0.1 // the result of z now is : (5.6) but be careful in java because if "z" is not of tyRead more
Hi Olivier,
it common that z += 5.6 are equivalent to z = z + 5.6, it’s one the assignment operators it takes the value of z then add 5.6 to it and at the end store the new result into z
ex:
but be careful in java because if “z” is not of type double you will get an compilation error.
hope this help.
Error: You cannot deactivate an asset for which there are open work requests or service requests or work orders
Check for any open work orders/work requests for the asset number. If open work orders/work requests exists update work order status to close/complete/cancel. Below are the queries to check open work orders/work requests -- Check for open Work Orders SELECT COUNT (1) FROM eam_work_orders_v WHERE ( wRead more
Check for any open work orders/work requests for the asset number. If open work orders/work requests exists update work order status to close/complete/cancel. Below are the queries to check open work orders/work requests
What are RICE components in the Oracle Apps ?
there is one article i wrote before taking about these terms and what is the difference between them ClICK HERE to read it.
there is one article i wrote before taking about these terms and what is the difference between them ClICK HERE to read it.
See lessWhen creating a Work Request via the APIs am I able to set the CREATED_BY?
by default who columns as (CREATED_BY) is one of them is handled automatically from oracle by database triggers like HRMS and when you call any API's from sql*plus or sql developer. who columns are set also automatically by anonymous user. but still you can control of this behavior by calling fnd_glRead more
by default who columns as (CREATED_BY) is one of them is handled automatically from oracle by database triggers like HRMS and when you call any API’s from sql*plus or sql developer. who columns are set also automatically by anonymous user.
but still you can control of this behavior by calling
before call your API. but keep in mind that it is your responsibility to pass in valid values, as incorrect values are not rejected.
Regards.
See lesscalling report from formbuilder 6.0 in menu to run in web server
Hi @elhamkoockak what is the error message exactly and share your code to be able to help you. thanks
Hi @elhamkoockak
what is the error message exactly and share your code to be able to help you.
thanks
See lessIt’s possible to call an oracle API from custom schema ?
You would have to grant the appropriate permissions to your custom schema.
You would have to grant the appropriate permissions to your custom schema.
See lesshow to list all linux users and groups ?
cd /home Here you can find the user and group name. type the below command ls -lrt
cd /home
Here you can find the user and group name. type the below command
ls -lrt