Skip to main content

Posts

Simple Mail Transfer Protocol (SMTP)

                                           Simple MailTransfer Protocol (SMTP) SMTP is a simple ASCII protocol for transferring mail between hosts in the TCP/IP suite. After establishing the TCP connection to port 25 , the sending machine, operating as the client, waits for the receiving machine, operating as the server, to talk first. The server starts by sending a line of text giving its identity and telling whether it is prepared to receive mail. If it is not, the client releases the connection and tries again later. If the server is willing to accept email, the client announces whom the email is coming from and whom it is going to. If such a recipient exists at the destination, the server gives the client the go-ahead to send the message. Then the client sends the message and the server acknowledges it. No checksums are needed because TCP provides a reliable byte stream...

Nepal Earthquake Safe Check

// Nepal Earthquake Safe Check  package javaapp; /** * * @author Tej Bist */ public class JavaApp { public void Safe(String positive) { if (positive.equals("Safe")) { System.out.println("You are Safe !!"); } else { System.out.println("You are UnSafe !!"); } } public static void main(String[] args) { new JavaApp().Safe("Safe"); } }
PL/SQL  ( Procedural Language/Structured Query Language ) is  Oracle Corporation 's  procedural   language  extension for  SQL  and the  Oracle relational database . PL/SQL is available in Oracle Database   TimesTen in-memory database  and  IBM DB2 . Oracle Corporation usually extends PL/SQL functionality with each successive release of the Oracle Database. PL/SQL includes procedural language elements such as  conditions  and  loops . It allows declaration of constants and  variables , procedures and functions, types and variables of those types, and triggers. It can handle  exceptions  (runtime errors).  Arrays  are supported involving the use of PL/SQL collections. Implementations from version 8 of Oracle Database onwards have included features associated with  object-orientation . One can create PL/SQL units such as procedures, functions, packages, types, and triggers, which ...