RMI basic program-Add 2 numbers

1. Create Calculator.java file.Write following code in it. import java.rmi.Remote; import java.rmi.RemoteException; public interface Calculator extends Remote { public long add(long a,long b)throws RemoteException; }  2. Create CalculatorImpl.java file.Write following code in it. import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; public class CalculatorImpl extends UnicastRemoteObject implements Calculator { protected CalculatorImpl() throws RemoteException { super(); } public long add(long […]

Read More

Bubble sort,Insertion sort,Selection sort programs

Q-1: write a program to implement sorting with BUBBLESORT METHOD. ANS : #include <stdio.h> #include <conio.h> Void main() { Int i,j,n,a[20],temp; Clrscr(); Printf(“enter the number of elements:”); Scanf(“%d”,&n); Printf(“enter the elements of array:”); Scanf(“%d”,&a[i]); For(i=0;i<n;i++) { Scanf(“%d”,&a[i]); } For(i=0;i<n-i;i++) { For(j=0;j<n-i;j++) { If(a[j]>a[j+1]) { Temp=a[j]; a[j]=a[j+1]; a[j+1]=temp; } } } Printf (“the ascending order is:n”); […]

Read More

Frequently Asked Questions In Information/Network Security

 Frequently Asked Questions and their weight-age 1. Briefly describe the security services. (8) 2. Explain classical encryption techniques(Steps involved in each encryption technique like Caesar cipher, playfair cipher, hill cipher, vigenere cipher, one time pad cipher, rail fence, etc) 3. Explain about steganography,transposition cipher. 4. Describe the key generation of DES and encryption algorithm(8/16) 5. […]

Read More