Tuesday, 17 September 2019

Write a Program for exception Handling in java

                                          Program for Exception Handling in Java using try and catch blocks


1. Open the notepad file.

2. Write the code given below in the file.


import java.util.Scanner;
class Excep
{
public static void main(String args[])
{

int div,a,b;
Scanner input= new Scanner(System.in);
System.out.println("Enter 1st Number");
a=input.nextInt();
System.out.println("Enter 2nd Number");
b=input.nextInt();
try
{
div=a/b;

Monday, 16 September 2019

Socket Programming in java

                                    Creating Chat Server in Java 

1. Open two notepad files.
2. Write the codes of Server and Client in separate files.

a.) Server Code
import java.io.*;
import java.net.*;
public class MyServerCode
{DataInputStream dIS;
public MyServerCode()
{
try
{

Simple Program for creating object in JAVA.

                        Java Program for Object Creation



1. Open notepad file.
2. Write the code given below in notepad.

class Student
{
String name;
String age;
public static void main(String arg[])
{//Creating Object of Student class
Student  obj= new Student(); // calling default constructor while creating object
System.out.println("Default Name of Object "+obj.name);
System.out.println("Default Age of Object "+obj.age);
}

}


Thursday, 29 August 2019

Write a Program of Hello World in Java

                                   Hello World! Program in Java


Steps are as follow:-


1. Open a notepad File.

2. Write the code given below in your File and save the file with name First.java.

class First

{


public static void main(String arg[])
{
System.out.println("Hello World !,This is my First Java Program");
}

}



3. Now compile the file by using command prompt.To open command prompt write cmd on run.










Tuesday, 6 August 2019

          How to Install Java (JDK) in PC or Laptop


Steps to install JAVA are:-

1. You need to download JDK according to the configuration of your OS.
example:- My PC is having Windows 7 of  64 bit .
So, i can download it from any of the site mentioned below.

ii. https://download.cnet.com/Java-Development-Kit-64-Bit/3000-2218_4-75317068.html
iii. https://www.filehorse.com/download-java-development-kit-64
iv. https://www.filehorse.com/download-java-development-kit-32/download/


2. Once the JDK has been downloaded ,install the software by clicking on it.

Thursday, 7 March 2019

Write a Factorial Program using Recursion in C++

                    Program of Factorial using Recursion in C++

What are recursive functions?

Recursive functions are those functions that repeatedly calls itself directly or indirectly during execution .
                          

                                          Steps to write the program

1. Open a turbo c++ compiler or any other compiler.

2. Write the code given below .


#include<iostream.h>
#include<conio.h>

int Factorial(int x)  // Factorial Function  Coding
{
 if(x<=1)
 { return 1; }
 else {  return x*Factorial(x-1); }
}

Dataware housing and data mining complete manual file(DWDM)

  XXX  UNIVERSITY Laboratory Manual   DATA WAREHOUSING AND DATA MINING   Practical Manual for Diploma S...