- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

Updated on 30-Jul-2019 22:30:20
To bind receiver dynamically in Workflow, you have to write a Function Module that will provide you manager name of initiator. This FM should be put in public class to be used in Workflow. The provided value will be saved in any table of HR module.Then you need to call this method from Workflow template. To set binding, you need to pass a value in _WF_INITIATOR._WF_Initiator WFSYST-INITIATORUsing _WF_Initiator Initiator of the workflow (user name).Here “user name” is a fourteen-character field in the structure US.When a workflow is started ... Read More 
Updated on 30-Jul-2019 22:30:20
The final modifier for finalizing the implementations of classes, methods, and variables.
The main purpose of using a class being declared as final is to prevent the class from being subclassed. If a class is marked as final then no class can inherit any feature from the final class.
You cannot extend a final class. If you try it gives you a compile time error.
Example
final class Super {
private int data = 30;
}
public class Sub extends Super{
}
Output
C:\Sample>javac Sub.java
Sub.java:7: error: cannot inherit from final Super
public class Sub extends Super{
^
1 error

Updated on 30-Jul-2019 22:30:20
The class named Object is the super class of every class in Java. Let’s test it with an example. The java.lang.Class.getSuperclass() returns the Class representing the superclass of the entity (class, interface, primitive type or void) represented by this Class. So, Create a sample concrete class and lets try to get the name of its super class using this method. Example Live Demo public class Test { public static void main(String args[]){ Test obj = new Test(); Class cls = obj.getClass().getSuperclass(); ... Read More 
Updated on 30-Jul-2019 22:30:20
Local variables are declared in methods, constructors, or blocks. Local variables are created when the method, constructor or block is entered and the variable will be destroyed once it exits the method, constructor, or block.
A local variable is the one which is declared within a method. The scope of this variable is within the method.
Example
public abstract class Sample {
public static void main(String args[]){
int data = 4044;
System.out.println(data);
}
}
Output
4044

Updated on 30-Jul-2019 22:30:20
The public modifier has the widest scope. When a class or its members declared public they are accessible from everywhere. A default class or its members are available to any other class in the same package. However, if the public class we are trying to access is in a different package, then the public class still needs to be imported. Because of class inheritance, all public methods and variables of a class are inherited by its subclasses. Example The following function uses public access control − public static void main(String[] arguments) { // ... } ... Read More 
Updated on 30-Jul-2019 22:30:20
Note that SAP Java Connector should be configured as server library and not as application library.There are many issues in the way you are trying to use:You shouldn’t change java.library.path programmatically as it is not recommended and this is cached at JVM start.You are overwriting java.library.path instead of adding your directory so your application server requires native libraries.Also note that our JVM root directory is different from your application root directory so /WEB-INF/lib path won’t be found by our JVM.

Updated on 30-Jul-2019 22:30:20
The method signature consists of the method name and the parameter list. Example Live Demo public class MethodSignature { public int add(int a, int b){ int c = a+b; return c; } public static void main(String args[]){ MethodSignature obj = new MethodSignature(); int result = obj.add(56, 34); System.out.println(result); } } Output 90 Method ... Read More 
Updated on 30-Jul-2019 22:30:20
Class variables also known as static variables are declared with the static keyword There would only be one copy of each class variable per class, regardless of how many objects are created from it. You can access a class variable without instantiation using the class name as className.variableName.
Example
Live Demo
public class Test{
static int num = 92;
public static void main(String args[]) throws Exception {
System.out.println(Test.num);
}
}
Output
92
Advertisements