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
Articles by Ramu Prasad
Page 5 of 5
What are the differences between struct and class in C++?
The members and base classes of a struct are public by default, while in class, they default to private. Struct and class are otherwise functionally equivalent.They are however used in different places due to semantics. a struct is more like a data structure that is used to represent data. class, on the other hand, is more of a functionality inclined construct. It mimics the way things are and work.
Read MoreCan a Vector contain heterogeneous objects in Java?
Since a vector stores elements in the form of objects, you can store objects of various types (heterogeneous) in it.Example:import java.util.*; class Demo{} public class VectorSample { public static void main(String args[]) { Demo obj = new Demo(); Vector v = new Vector(3, 2); System.out.println("Initial size: " + v.size()); System.out.println("Initial capacity: " + v.capacity()); v.addElement(new Integer(1)); v.addElement(new String("krishna")); v.addElement(new Float(3.5f)); v.addElement(obj); System.out.println("Capacity after four additions: " + v.capacity()); } }
Read MoreSingle level inheritance in Java
Single Level inheritance - A class inherits properties from a single class. For example, Class B inherits Class A.Example Live Democlass Shape { public void display() { System.out.println("Inside display"); } } class Rectangle extends Shape { public void area() { System.out.println("Inside area"); } } public class Tester { public static void main(String[] arguments) { Rectangle rect = new Rectangle(); rect.display(); rect.area(); } }OutputInside display Inside areaHere Rectangle class inherits Shape class and can execute two methods, display() and area() as shown.
Read MoreCopying ALV layout from one client to another in SAP if they are not user specific
You can transport your ALV layouts to other system if they are not user specific. This can be performed in Layout Administration by raising a customizing request.Navigate to this path for Layout Administration:Main Menu -> Settings -> Layout -> Administration
Read MoreDownloading file using SAP .NET Connector
It is not possible to retrieve files using BAPI from SAP system. There should be a way to copy the file to a shared location and you can read the file from there using .NET.
Read MoreInterfacing database to external parties in SAP system
Interacting directly with SAP databases is not considered a good programming practice. As SAP database is nothing but a normal database, it can interact in any way like any ODBC technique - ADO.NET or other.Remote Function Calls can be used to make calls to databases. ERP Connect supports RFC and can be used for reading data from tables.In case one needs a high customization and control, one can create a custom RFC component to fetch and return the intended data.
Read MoreList of Best JavaScript libraries?
The following are some of the best JavaScript Libraries:jQueryjQuery is a fast and concise JavaScript Library created by John Resig in 2006 with a nice motto – “Write less, do more”. jQuery simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.MooToolsMooTools is an object-oriented, lightweight JavaScript framework. The full form of MooTools is My Object-Oriented Tools. It is released under the free, open-source MIT License. It is one of most popular JavaScript libraries. MooTools is a powerful, lightweight JavaScript library. It creates an easy interaction of JavaScript in web development. It can also do many ...
Read MoreHow to convert BLOB to Byte Array in java?
You can contents of a blob into a byte array using the getBytes() method.Exampleimport java.awt.Image; import java.awt.image.BufferedImage; import java.sql.Blob; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.Arrays; public class BlobToByteArray { public static void main(String[] args) throws Exception { Image image = new BufferedImage(300, 400, BufferedImage.TYPE_INT_RGB); String JDBC_DRIVER = "com.mysql.jdbc.Driver"; String DB_URL = "jdbc:mysql://localhost/mydb"; String USER = "root"; String PASS = "password"; ...
Read More