Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Java is also not pure object-oriented like c++
the main() method in Java code is itself inside a class. The static keyword lets the main() method which is the entry point of execution without making an object but you need to write a class. In C++, main() is outside the class and writing class it self is not mandatory. Hence, C++ is not a pure object oriented language bu Java is a completely object oriented language.
Read MoreHow to write string functions in Java?
1) take a string from the user and check contains atleast one digit or not:Extract character array from string using toCharArray() method. Run a for loop over each character in array and test if it is a digit by static method isDigit() of character classpublic static boolean chkdigit(String str) { char arr[]=str.toCharArray(); for (char ch:arr) { if (Character.isDigit(ch)) { return true; } } return false; }2.) take ...
Read MoreCamelCase in Java naming conventions
Java follows camel casing for objects, class, variables etc. If a name is having multiple words, the first letter is small then consecutive words are joint with the first letter as a capital case. Consider the following example − Taxation Department Class - TaxationDepartment Object - taxationDepartment Method - getTaxationDepartmentDetails Variable - taxationDepartment
Read MoreWhat are Java methods equivalent to C# virtual functions?
All instance methods in Java are virtual except, static methods and private methods.
Read MoreCreating multiple Java objects by one type only
You can create a List of object easily. Consider the following example, where I'll create an array of Employee objects and print their details in a for loop. import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.List; public class Tester implements Cloneable { private int data; public int getData() { return data; } public void setData(int data) { this.data = data; } public Tester(int data){ ...
Read MoreUse of Function modules in SAP ABAP to change address independent communication data for BP
You can change address independent communication data using Function Modules like BAPI_BUPA_CREATE_FROM_DATA and BAPI_BUPA_CENTRAL_CHANGE and other FM’s in the same category.Function Module: BAPI_BUPA_CREATE_FROM_DATA Function Group: BUBA_3 Program Name: SAPLBUBA_3 Following are the parameters:Function Module: BAPI_BUPA_CENTRAL_CHANGEFunction Group: BUBA_3 Program Name: SAPLBUBA_3Following are the parameters:Functional Group: BUBA_3You have lot many function modules that comes under function group BUBA_3, Few of them are below and their description:BAPI_BUPA_CREATE_FROM_DATASAP BP, BAPI: Create Business PartnerBAPI_BUPA_ADDRESSES_GETSAP BP, BAPI: Determine All AddressesBAPI_BUPA_EXISTENCE_CHECKSAP BP, BAPI: Check Existence of Business PartnerBAPI_BUPA_GET_NUMBERSSAP BP, BAPI: Read Business Partner NumbersBAPI_BUPA_ADDRESS_GETDETAILSAP BP, BAPI: Read ...
Read MoreUsing Switch Ownership option in SAP HANA
With use of switch ownership you can take single or multiple inactive objects from other users. Multiple Information views can be created in HANA system and all these views remains inactive until they are activated in HANA Studio. With use of Switch Ownership option, one user can take ownership of one or multiple inactive objects in HANA.You need to select inactive Information objects that you want to take from other user. From drop down list you can select source user and with use of Add button, you can add objects under selected models window.
Read MoreDifference between take over and Switch ownership in SAP HANA
Below is the difference between take over and switch ownership.Take Over: This option is used to take single inactive object from another workspace.Switch Ownership: This option is used to take single or multiple inactive objects from other users.When you expand Switch ownership option in HANA Modeler, you can see description of this option-
Read MoreHow to use R in Java-8 regex.
\R matches any line break as defined by the Unicode standardPattern p = Pattern.compile("\R");Unicode line-break sequence is equivalent to \u000D\u000A|[\u000A\u000B\u000C\u000D\u0085\u2028\u2029]
Read MoreUsing activity in SAP for number range intervals and number range objects
As the name indicates, activity 02 is for intervals while activity 17 is for objects. There can be a different number range interval for a given SAP number range interval.
Read More