Characteristics of Computer


Characteristics of Computer

  • Speed- Computer can work at very high speed. Computer can process large amounts of data in a short time where as humans take long time. 
  • Accuracy- The computer performs all the calculations accurately, but an error can occur only due to the inaccurate data. If the user enters a wrong input then the output will also be wrong. 
  • Storage- A computer can store large amount of data. The computer not only stores the data but can also give back the data within seconds that the user wants. 
  • Diligence- A computer can work for long time because a computer is free from tiredness and lack of concentration and even does not get bored whereas the human beings get tired very soon and even lose concentration and hence make errors.
  •  Versatility- Computer can perform any type of task. Computers can communicate with other computers and can send and receive data. They can perform simple as well as complex task.  
  • Intelligence- Computers do not have any intelligence of their own. It can perform only those tasks that are instructed by human beings. Therefore it needs to be told what it has to do.

Intorduction to asp.net


Introduction to ASP.Net
ASP.Net is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required to build up robust web application for PC, as well as mobile devices.
ASP.Net works on top of the HTTP protocol and uses the HTTP commands and policies to set a browser-to-server two-way communication and cooperation.
ASP.Net is a part of Microsoft .Net platform. ASP.Net applications are complied codes, written using the extensible and reusable components or objects present in .Net framework. These codes can use the entire hierarchy of classes in .Net framework.
-----------------------------------------------------------------------------------------

TEACHER TRAINING INSTITUTE

INDUSTRIAL TRAINING INSTITUTE, PATIALA, BEST  INDUSTRIAL TRAINING INSTITUTE, PATIALA ,6 WEEKS  INDUSTRIAL TRAINING INSTITUTE, PATIALA, 6 MONTHS  INDUSTRIAL TRAINING INSTITUTE, PATIALA,
TEACHER TRAINING INSTITUTE, PATIALA, WEB SITE DEVELOPMENT  TRAINING INSTITUTE, PATIALA,WEB SITE DESIGNING TRAINING INSTITUTE, PATIALA

INDUSTRIAL TRAINING INSTITUTE, PATIALA

INDUSTRIAL TRAINING INSTITUTE, PATIALA, BEST  INDUSTRIAL TRAINING INSTITUTE, PATIALA ,6 WEEKS  INDUSTRIAL TRAINING INSTITUTE, PATIALA, 6 MONTHS  INDUSTRIAL TRAINING INSTITUTE, PATIALA, TEACHER TRAINING INSTITUTE, PATIALA, WEB SITE DEVELOPMENT  TRAINING INSTITUTE, PATIALA,WEB SITE DESIGNING TRAINING INSTITUTE, PATIALA

How to insert values in java

import java.sql.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class inst extends Frame implements ActionListener
{
Connection con=null;
PreparedStatement st;
Frame f;
Button b;
Label l1,l2,l3;
TextField t1,t2,t3;
FlowLayout fl;
inst()
{
f=new Frame("insert");
l1=new Label("Enter name");
l2=new Label("Enter roll no");
l3=new Label("Enter marks");
t1=new TextField(10);
t2=new TextField(10);
t3=new TextField(10);
fl=new FlowLayout();
f.setLayout(fl);
f.add(l1);
f.add(t1);
f.add(l2);
f.add(t2);
f.add(l3);
f.add(t3);
b=new Button("Insert");
f.add(b);
b.addActionListener(this);
f.setSize(200,200);
f.setVisible(true);
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:harsh");
st=con.prepareStatement("INSERT INTO stu VALUES(?,?,?)");
}
catch(Exception e)
{
}
}
public void actionPerformed(ActionEvent ee)
{
if(ee.getSource()==b)
{
try
{
st.setString(1,t1.getText());
st.setString(2,t2.getText());
st.setString(3,t3.getText());
st.executeUpdate();
JOptionPane.showMessageDialog(this,"Record inserted");
}
catch(Exception e)
{
}
}
}
public static void main(String arg[])
{
inst obj=new inst();
}
}