Skip to main content

Computer Memory Measurement

Units of Computer Memory Measurement

Units of Computer Memory Measurement
(Image by - Sharma Guides | Subham232330)


1Bit = Binary Digit

8Bits = 1 Byte

1024 Bytes = 1KB (Kilo Byte)

1024 KB = 1MB (Mega Byte)

1024 MB = 1GB (Giga Byte)

1024 GB = 1TB (Terra Byte)

1024 TB = 1PB (Peta Byte)

1024 PB = 1EB (Exa Byte)

1024 EB = 1ZB (Zetta Byte)

1024 ZB = 1YB (Yotta Byte)

1024 YB = 1 Bronto Byte

1024 Brontobyte = 1 Geop Byte



Comments

Popular posts from this blog

SQL Constraints, NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK, DEFAULT, CREATE INDEX

SQL Constraints (Image by - Sharma Guides | Subham232330) Constraints   |   |- CHECK   |   |- NOT NULL   |   |- UNIQUE   |   |- PRIMARY KEY   |   |- DEFAULT   |   |- FOREIGN KEY   |   |- INDEX * These constraints are also known as Integrity Constraints . * SQL Constraints:- Constraints are the rules and restrictions applied to the data in a table. * NOT NULL:- Value cannot be Null in a column. * UNIQUE:- Value cannot be the same in a column. * PRIMARY KEY:- Used to uniquely identify a row. * FOREIGN KEY:- References a row in another table. * CHECK:- Satisfies a specific condition. * DEFAULT:- Set default value. * CREATE INDEX:- Used to speed up the reading process.

Implement Echo client and Echo server using TCP Sockets

Implement Echo client and Echo server using TCP Sockets EchoServer.java import java.net.*; import java.io.*; public class EServer { public static void main(String args[]) { ServerSocket s=null; String line; DataInputStream is; PrintStream ps; Socket c=null; try { s=new ServerSocket(9000); } catch(IOException e) {} try { System.out.println(e); c=s.accept(); is=new DataInputStream(c.getInputStream()); ps=new PrintStream(c.getOutputStream()); while(true) { line=is.readLine(); ps.println(line); }} catch(IOException e) { System.out.println(e); }}} EchoClient.java import java.net.*; import java.io.*; public class EClient { public static void main(String arg[]) { Socket c=null; String line; DataInputStream is,is1; PrintStream os; try { InetAddress ia = InetAddress.getLocalHost(); c=new Socket(ia,9000); } catch(IOException e) {} try { System.out.println(e); os=new PrintStream(c.getOutputStream()); is=new DataInputStream(System.in); is1=new DataInputStream(c.getInputStream()); while(true) { Sys...

Write a java program which has various types of constructor and overload these constructors when the object is being created of that class.

Write a java program which has various types of constructor and overload these constructors when the object is being created of that class. class variousConstructor {  public static void main(String[] args) {  constructor c1 = new constructor();  constructor c2 = new constructor(23);  constructor c3 = new constructor(45.6);  }  }  class constructor {  public constructor() {  System.out.println("It's 1st constractor.");  }  public constructor(int n1) {  System.out.println("It's constractor with integer variable which is " + n1);  }  public constructor(double d1) {  System.out.println("it's a constractor with double variable which is " + d1);  }  public constructor(float f1) {  System.out.println("It's a constractor with float variable which is " + f1);  }  } OUTPUT: It's 1st constractor. it's a constractor with double variable which is 23 It's a constractor with float variable which is 45....