Ramu Prasad

Ramu Prasad

48 Articles Published

Articles by Ramu Prasad

Page 5 of 5

What are the differences between struct and class in C++?

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 417 Views

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 More

Can a Vector contain heterogeneous objects in Java?

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 1K+ Views

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 More

Single level inheritance in Java

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 15K+ Views

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 More

Copying ALV layout from one client to another in SAP if they are not user specific

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 907 Views

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 More

Downloading file using SAP .NET Connector

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 587 Views

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 More

Interfacing database to external parties in SAP system

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 247 Views

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 More

List of Best JavaScript libraries?

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 309 Views

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 More

How to convert BLOB to Byte Array in java?

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 8K+ Views

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
Showing 41–48 of 48 articles
« Prev 1 2 3 4 5 Next »
Advertisements