Skip to main content

Posts

Showing posts from December 17, 2015

Apttitude

APTITUDE FORMULA TIME AND DISTANCE - IMPORTANT FACTS AND FORMULAE 1. Speed = [Distance/Time], Time=[Distance/Speed], Distance = (Speed*Time) 2. x km/hr = [x*5/18] m/sec. 3. If the ratio of the speeds of A and B is a:b, then the ratio of the times taken by them to cover the same distance is 1/a : 1/b or b:a. 4. x m/sec = [x*18/5] km/hr. 5. Suppose a man covers a certain distance at x km/hr and an equal distance at y km/hr. then, the average speed during the whole journey is [2xy/x+y] km/hr. PROFIT AND LOSS - IMPORTANT FACTS AND FORMULAE Cost Price : The price at which an article is purchased, is called its cost price, abbreviated as C.P. Selling Price : The price at which an article is purchased, is called its cost price, abbreviated as C.P. Profit or Gain : The price at which an article is purchased, is called its cost price, abbreviated as C.P. Loss : If S.Pis less than C.P., the seller is said to have incurred a loss. 1. Gain = (S.P.) - (C.P.) 2. Loss or gai...

JDBC CODING STANDARDS

//explicit imports import java.sql.DriverManager; import java.sql.Connection; import java.sql.Statement; import java.sql.ResultSet; //declaring class name public class CodingStanderdConnTest {       // declaring variables       private static Connection connection = null ;       private static Statement statement = null ;       private static ResultSet resultset = null ;       // declaring main method       public static void main(String[] args ) {             // outer try block for all statement             try {                   System. out .println( "Execution started....." );  ...