Procedure to develop a JAVA program

0

Procedure to develop a JAVA program.
Step-1: Create a folder to store all your programs. This folder is called the Present Working Directory. Assuming the  folder path as (G:\netlojava\java_prog)

Step-2: Open notepad (start -> All Programs -> Accessories -> Notepad) and type below code


Step-3: Save this file in java_prog folder with name FirstProgram.java
Note: Java file name can be user defined name. It is not always mandatory to save java file name with same class name. If class is declared as "public" then only it is mandatory to save the file with class name. Let us try with different java file name.


Folder Structure

Program development is completed, now let us compile and execute.

Compilation and execution:
Step-4: Compilation
1. Open command prompt.
2. Change Drive and then directory to current working directory to Java_prog folder.
3. Then use javac tool to compile FirstProgram.java file, as show below figure.


Compiler has generated ".class" file successfully for the class JavaProgram in java_prog folder.
Note: Compiler generates ".class" file with the class name not java file name.
Check Java_prog folder for ".class" file name.


Step-5: Execution
Use java tool to execute JavaProgram class bytecodes file, as show below figure.


Compiler Activity:
It takes java file name as its input and generates bytecodes for all classes defined in that java file and stores each class bytecodes in a separate ".class" file with name same as class name.

JVM Activity:
It takes class name as its input and searches for a .class file with the given class name. If it found it reads and loads that .class file bytecodes into JVM, then starts that class logic execution by calling "main" method.


0 comments:

Arithmetic Operators

0

Arithmetic Operators in java.

/*
-------------------- Arithmetic Operators --------------------
Java supports 5 Arithmetic operators
1. Addition (+)
2. Subtraction (-)
3. Multiplication (*)
4. Division (/)
5. Reminder (%)
-------------------- Arithmetic Operators precedence --------------------
*,/,%   operators have highest and same precedence
+,-       operators have next and same and precedence
note: In java all operators in an expression are executed from LEFT to RIGHT means from "=" operator to "," according to their precedence. */

// What is the output from the below program arithmetic statements.

class ArithmeticOperators{
     public static void main(String arg[]){

System.out.println(2+6-2);
System.out.println(2-2+6);
System.out.println(2*2+6);
System.out.println(2*6+2);
System.out.println(4/2*2);
System.out.println(2*6/5);
System.out.println(5*6/2);

System.out.println(5%2);
System.out.println(2%2);
System.out.println(2-2);
System.out.println(2+2);
System.out.println(8/2%2);

System.out.println(2-4+16/2*4%2);
System.out.println(4*2+8/2-3*3+4/2);
System.out.println(4*2+8/2-3*3+6/3);
System.out.println(8+8/2-3*3+6/3);
System.out.println(8+4-3*3+6/3);
System.out.println(12-9+2);
}
     }



Compilation:
G:\> javac ArithmeticOperators.java

Execution:
G:\> java ArithmeticOperators

Out Put:

6
6
10
14
4
2
15
1
0
0
4
0
-2
5
5
5
5
5

0 comments:

What are the Java file's extensions.

0

What are the Java file's extensions.

In Java we have only two extension files. They are 
  •  ".java" extension file it called source code which is developed by developer.
  •  ".class" extension file it is called compiled code contains bytecode which is generated by compiler from source code.
Like in 'C' or 'C++', in java we do not have executable file means ".exe" extension files. More over in java, the compiled code is not machine language; instead it is an intermediate code, named as "bytecodes" stored in a new file with an extension ".class". This code is generated by java compiler and is only understandable by JVM.

0 comments:

Why the name OAK renamed to java and what is the abbreviation of java.

0

Why the name OAK renamed to java and what is the abbreviation of java.?

OAK renamed to java:
     They were unable to register this programming language with name OAK, because already some other product is registered with the same name. So they renamed to Java.

Abbreviation of java:
     There is no abbreviation for java. The Development team of java has just chosen this name. The name java specifically doesn't have any meaning rather it refers to the hot, aromatic drink COFFEE. This is the reason java programming language icon is coffee cup.

0 comments:

Software Engineer Skills

0

Software Engineer Skills:

As a being a software engineer you must work in developing all  three types of applications. so you mumst acquire all bellow skills.

1. Programming Language - Java / .NET

2. GUI Preparation Language - HTML, CSS

3. Scripting Language - Java Script, VB Script

4. Database - Oracle, SQL Server

5. Server Operating System - Unix commands and shell scripting

6. Problem Solving Skills - CRT and C with DS

7. Presentation Skills - MS-Office

8. Communication Skills - English

0 comments:

gmail server architecture

3


Gmail server architecture:

Let us try to understand the operations you are doing to check you mails in gmail account or any mail account.

1. First you will open browser, then you enter gmail server address "www.gmail.com" in the address bar.

2. Soon you press "Enter" Key on keyboard. you will observe gmail login page is appeared. Is that logic page HTML code available in your computer? Or is it downloaded from gmail server? It is downloaded from gmail server then you browser renders that html code and displays it to you. Now tell me HTML technology develops what type of application? Web supportive Application.

3. Now, as per next step you will enter your gmail account username and password, and you will click signin button. If the given username and password is correct you will get your inbox mails, else you will get an error page saying that username or password is incorrect.

4. Think what happened in background:
Browser sends the given username and password to gmail server(project). gmail serverreads these values and passes those values to an application running at server side. It is nothing but Servlet, means Web Application.

5. Then servlet passes those values to Database Interaction Application, JDBC program.

6. Now, JDBC program executes SELECT query on DB Login table to check whether user exists with given values or not. If user exists DB returns userid.
The Query would be
select USERID from LOGIN where UNAME=GIVEN_USERNAME and PWD=GIVEN_PASSWORD;

7. Using this returned userid, JDBC program executes another SELECT query on INBOX table to get all mails related to this user. DB sends all mails related to this user to JDBC application. The query would be 
select MAILS from INBOX where USERID=RETURNED_USERID;

8. Then JDBC application sends those mails to servlet.

9. Now the Servlet sends those mails to JSP to format the mails with help of HTML hyperlinks.

10. Using these mails, JSP generates HTML code dynamically and sends that HTML code to servlet.

11. Servlet sends those mails which are formattedin HTML code to the browser.

12. Finally, the browser displays those mails to user.

Below diagram shows all above 12 steps execution:


Conclusions from the above diagram

1. Every real world web project contains below three applications
  • Web supportive application.
  • Web application.
  • Database interaction application.
2. In java we develop above applications by using.
  • html/ applet - to develop web supportive application.
  • Servlet and JSP - to develop web application.
  • JDBC and EJB - to develop Database Interaction Application.
3. In .NET we develop above applications by using 
  • html - to develop web supportive
  • ASP.NET   - to web applications
  • ADO.NET - to develop database Interaction Application.
4. Web supportive application (HTML/Applet) is used
  • For collecting input from end-user by providing GUI then to pass it to web application.
  • For displaying output to end-user by providing Report.
5. Web application (Servlet and JSP technologies) is used for 
  • Processing request and
  • Preparing response.
Servlet role is processing request means:
  • Reading input from network that is sent by end-user via HTML forms, then
  • Executing Business Logic by using this input then.
  • Finally generating output and sending it to JSP.
JSP role is preparing response means:
  • Generating dynamic HTML by using the output given by servlet.
  • Sending the result HTML back to Servlet.
Then servlet sends this response to browser to display this output to end-user.

6.Database Interaction Application (JDBC/EJB technologies) is used for performing CRUD operations on DB.

DB Terminology
C - Create Insert
R - Read Select 
U - Update Update
D - Delete Delete

3 comments:

Working with EditPlus Software

0

Working with EditPlus Software

EditPlus is an editor software that supports developing java, c, c++, HTML, PHP, perl programs including a pain text file. While it can serve as a good notepad replacement, it also offers many powerful features for wev page authors and programmers.

Advantages of EditPlus:
EditPlus software provides more features then notepad. It provides below features
1.It has colorful screen, It shows
a. Keywords in Blue color
b. Predefined classes in Red color
c. Strings and literals in Pink color
2.It automatically manages code indentation.
3.Can add ".java" extension automatically.
4. We can compile and execute java program directly from Editplus editor.
5. It also has auto save option.
6. Can display line numbers.


Installing EditPlus software:
It is a tril version software you can download it from its home page 
a. You will be downloading "epp331.exe" file.
b. Double click this exe file, its installation will be started.
c. Click on Finish button at last window that shows EditPlus installation is completed.
After istallation you will find EditPlus shortcut image on desktop.

Double click on it, below window is opened.





Creating a java file in Editplus
Click on File -> new -> java


It Opens java editor with the default java template as shown below


Enter class name and save this file with .java extension.
Note: It takes java extension automatically.

when you save this file you will get two files in PWD
    1) .java extension file              Ex: Test.java
    2) .java.bak extension file          Ex: Test.java.bak

Disabling backup file creation option
To disable back up file creation follow below steps
click on tools -> Preferences menu item

Below window is opened,
Click on Files -> uncheck the checkbox "Create backup file when saving"

Click Ok button to save this change.

Increasing and decreasing fonts
Open java editor -> Click on View -> Screen Font -> Set Font menu item.


It opens a window, set your desired font -> click ok button to save changes.

Configuring javac and java tools to compile and execute java classes directly from Editplus:
Open java Editor -> Click on Tools Menu -> Configure User Tools Menu item


Below window is opened. Click on Add Tool -> Program


All above four text fields are enabled, enter text as shown below
Enter Menu Text: Compiler (can be user defined name, it meaningful and relevant)
To select javac command path, click on the button placed after its path is stored in text field.




To enter Argument value,
Click on dropdown button that is placed after its textfield -> Click on File Name.



To enter Initial directory value 
Click on dropdown button that is placed after its textfield -> Click on File Directory


Below is the final window with all configured values


Follow the same above procedure to configure java tool
     Menu Text: JVM
     Command: C:\jdk1.6.0.29\bin\java.exe
     Argument: Your should choose File Name Without Extension



Now you can find these two tools with Menu text name in Tools menu with short cuts
Compiler: Ctrl+1 & Ctrl+2 as shown below


Rule in developing java file from Editplus:
To execute java program from editplus, the Java file name must be same as class name even though class is not public. Else you will get exception "java.lang.NoClassDefFoudError"

Why this rule?
Recollect the configuration done for java tool.
We set Argument value as "FileName without extension".

For Example 
If we create class with name A and java file name with name Example.java.

EditPlus Software 
Compiles this java file as
  javac Example.java
Executes the class as
java Example

So in this case JVM throws " java.lang NoClassDefFoundError: Example" as there is no Example.class, instead we have A.class.

Note:
This rule is common for all editor softwares those support in-build compilation and execution.

How does it display compilation, execution errors and output?
For compilation and execution it also uses command prompt. So all compilation, execution errors and output is displayed on command prompt windows as shown below.


To enable Line number
Open java editor -> Click on View -> Line Number menu item.
Short-cut: Ctrl+shift+L

How Can it display keywords, predefined classes in blue and red colors:
All predefined class names are saved in file, that file path is
C:\Program Files\EditPlus 3\java.stx

In Editplus, this file path is configured in the below window
Click on Tools -> Preferences menu item ->
Click on Files -> Settings & syntax




Click on Syntax colours tab,you will be shown default configured colours.


Short-cut for copy & past existed single line:
Place cursor anywhere on the line that you want to copy & paste , and then press Ctrl+J.



0 comments:

components of SQL

0

Components of SQL:

Oracle SQL complies with industry accepted standards. The SQL Contains 5 Sub lnguages.
1) DRL or DQL.
2) DML.
3) DDL.
4) DCL.
5) TCL.

1).Data Retrieval/Query Language (DRL/DQL):
It includes SELECT statement. Using it one can query in database.
SELECT:  It used to retrieve the information from database objects for read only purpose.
Syntax: Select * from   <table_name>;
2).Data Manipulation Language(DML):
DML statements are used for managing data within schema objects. SQL commands which comes under Data Manipulation Language (DML) are :
i) INSERT              ii) UPDATE           iii) DELETE
i) INSERT(new content): Insert data or rows into a table.
                Syntax: INSERT INTO  <table_name> [list of columns] 
                                VALUES(column_name DATATYPE,..........);
ii) UPDATE(modify): Updates existing data or rows within a table.
                Syntax: UPDATE  <table_name>
                                SET column1=value1,column2=value2,... 
                                WHERE some_column=some_value;
iii) DELETE(remove): Deletes all records or data from a table, the space occupied will remain.
                Syntax: DELETE FROM table_name
                                WHERE some_column=some_value;
3).Data Definition Language(DDL):
DDL statements are used to define the database structure or schema. SQL commands which comes under Data Definition Language (DDL) are :
i) CREATE             ii) ALTER                               iii) DROP                               iv)TRUNCATE
i) CREATE – To create objects in the database.
                Syntax: CREATE TABLE  <table_name>(
                                column_name1 data_type(size),
                                column_name2 data_type(size),
                                 column_name3 data_type(size),
                                ....
                                );

ii) ALTER – Alters the structure of the database. The ALTER TABLE statement is used to add, delete, or modify columns in an existing table.
                a) ADD:  To add a column in a table, use the following syntax:
                Syntax: ALTER TABLE  <table_name>
                                ADD column_name datatype;
                b) DROP: To delete a column in a table, use the following syntax (notice that some database systems don't allow deleting a column):
                Syntax: ALTER TABLE  <table_name>
                                DROP COLUMN column_name;
                c) MODIFY: To change the data type of a column in a table, use the following syntax:
                Syntax: ALTER TABLE  <table_name>
                                MODIFY COLUMN column_name datatype;
                d) RENAME: To rename column name to the old column name to new column name in a  table, use the following syntax:
                Syntax: ALTER TABLE  <table_name>
                                RENAME COLUMN  old_column_name to new_column_name;

iii) DROP – Delete command is used to delete the tables from database.
                Syntax: DROP table  <table_name>;

iv) TRUNCATE – Remove all records or rows from a table, also free the space occupied by those records.
                Syntax: TRUNCATE table  <table_name>;
4).Data Control Language(DCL):
It used to share the information between the users.
i) GRANT.            ii) REVOKE.
i) GRANT(give permission): The GRANT command is used to allow another schema access to a privilege. GRANT command can be issued not only on TABLE OBJECT, but also on VIEWS, SYNONYMS, SEQUENCES Etc.
                Syntax: GRANT <privilege1 [, privilege2....]
                                ON  <object_Name>
                                TO <user1> [,user | role, PUBLIC....];
ii) REVOKE(cancle): It used to remove the access allowed by GRANT. REVOKE privileges is assigned not only on TABLE OBJECT, but also on VIEWS, SYNONYMS, SEQUENCES  etc.
                Syntax: REVOKE <privilege1 [, privilege2...]
                                 ON <object_name>
                                FROM <user> [,user | role, PUBLIC...];

5).Transaction Control Language(TCL):
It used to share the information between users.
i) COMMIT          ii) ROLLBACK      iii) SAVEPOINT
i)COMMIT: The COMMIT statement ends the current transaction, making any changes made during that transaction permanent, and visible to other users.
                Syntax: COMMIT;
ii) ROLLBACK: The ROLLBACK statement ends the current transaction and undoes any changes made during that transaction. If you make a mistake, such as deleting the wrong row from a table, a rollback restores the original data. If you cannot finish a transaction because an exception is raised or a SQL statement fails, a rollback lets you take corrective action and perhaps start over.
                Syntax: ROLLBACK [savepoint name];
iii) SAVEPOINT: SAVEPOINT names and marks the current point in the processing of a transaction. Savepoints let you roll back part of a transaction instead of the whole transaction.
                Syntax: SAVEPOINT TO savepoint_name;

0 comments:

Relation Database Terminology

0

Relation Database Terminology:
      A relational database is a database management system based on relational model of database. It is a set of tables containing a pre-defined data types. All the tables in a relational database are flat table. In this model relations are established among the table with the help of their common attribute. SQL is the standard user and application program interface to access the data in the relational database. In this database tables are known entity set, files, or relation depending upon the writer. You need to represent all data in table and each table represents a same kind of data.
Row or Tuple:
It represents all data required for a particular instance in entity. Each row is an entity is uniquely identified by declaring it has PRIMARY KEY or UNIQUE. The order o the rows is not significant, while retrieving the data.
Column or Attribute:
It represent one kind of data in a table. The column order is not significant when storing the data.
A Field:
It can be found at the intersection of row and a column. A field can have only one value, or may not have a value at all, the absence of value in Oracle is represented as NULL.
Relating Multiple Tables:
Each table contains data that describes exactly only one entity. Data about different entities is stored in different tables. RDBMS enables the data in one table to be related to another table by using the Foreign keys. A Foreign key is a column or a set of column that refer to a Primary key in the same table or another table.
Rational Database Properties:
Should not specify the access route to the tables, and should not reveal the physical arrange. The Database is accessed using Structured Query Language(SQL). The language is a collection of set operators.
Communicating with RDBMS:
  The Structured Query Languager is used to communicate with RDBMS.


Relation Database Terminology

0 comments:

Introduction to the Structure Query Language(SQL):

0

Introduction to the Structure Query Language(SQL):
      Structured Query Language is the language of database. SQL (Structured Query Language) is a special-purpose programming language designed for managing data held in a relational database management system (RDBMS).

  • Structure Query Language and commonly pronounced as "SEQUEL" (Structured English Query Language).
  • Dr. E.F Codd published the paper on relational database model in june 1970. IBM Corporation, Inc.
  • SEQUEL later become SQL.
  • It allows the user to communicate as the server.
  • It is easy to learn and use.
  • It is functionally complete, by allowing the use to define, retrieve and manipulate the data.
  • Although most database systems use SQL, most of them also have their own additional proprietary extensions that are usually only used on their system. However, the standard SQL commands such as "Select", "Insert", "Update", "Delete", "Create", and "Drop" can be used to accomplish almost everything that one needs to do with a database.


0 comments:

SQL demo tables

0


SQL demo tables(emp table, dept table, salgrade table):
This below code are copy from the first line to last line. After this code are the past the sql command and enter the enter key. The three tables are the automatically created.

DROP TABLE EMP PURGE;
DROP TABLE DEPT PURGE;
DROP TABLE SALGRADE;


CREATE TABLE EMP
       (EMPNO NUMBER(4) NOT NULL,
        ENAME VARCHAR2(10),
        JOB VARCHAR2(9),
        MGR NUMBER(4),
        HIREDATE DATE,
        SAL NUMBER(7, 2),
        COMM NUMBER(7, 2),
        DEPTNO NUMBER(2));

INSERT INTO EMP VALUES
        (7369, 'SMITH',  'CLERK',     7902,
        TO_DATE('17-DEC-1980', 'DD-MON-YYYY'),  800, NULL, 20);
INSERT INTO EMP VALUES
        (7499, 'ALLEN',  'SALESMAN',  7698,
        TO_DATE('20-FEB-1981', 'DD-MON-YYYY'), 1600,  300, 30);
INSERT INTO EMP VALUES
        (7521, 'WARD',   'SALESMAN',  7698,
        TO_DATE('22-FEB-1981', 'DD-MON-YYYY'), 1250,  500, 30);
INSERT INTO EMP VALUES
        (7566, 'JONES',  'MANAGER',   7839,
        TO_DATE('2-APR-1981', 'DD-MON-YYYY'),  2975, NULL, 20);
INSERT INTO EMP VALUES
        (7654, 'MARTIN', 'SALESMAN',  7698,
        TO_DATE('28-SEP-1981', 'DD-MON-YYYY'), 1250, 1400, 30);
INSERT INTO EMP VALUES
        (7698, 'BLAKE',  'MANAGER',   7839,
        TO_DATE('1-MAY-1981', 'DD-MON-YYYY'),  2850, NULL, 30);
INSERT INTO EMP VALUES
        (7782, 'CLARK',  'MANAGER',   7839,
        TO_DATE('9-JUN-1981', 'DD-MON-YYYY'),  2450, NULL, 10);
INSERT INTO EMP VALUES
        (7788, 'SCOTT',  'ANALYST',   7566,
        TO_DATE('09-DEC-1982', 'DD-MON-YYYY'), 3000, NULL, 20);
INSERT INTO EMP VALUES
        (7839, 'KING',   'PRESIDENT', NULL,
        TO_DATE('17-NOV-1981', 'DD-MON-YYYY'), 5000, NULL, 10);
INSERT INTO EMP VALUES
        (7844, 'TURNER', 'SALESMAN',  7698,
        TO_DATE('8-SEP-1981', 'DD-MON-YYYY'),  1500, NULL, 30);
INSERT INTO EMP VALUES
        (7876, 'ADAMS',  'CLERK',     7788,
        TO_DATE('12-JAN-1983', 'DD-MON-YYYY'), 1100, NULL, 20);
INSERT INTO EMP VALUES
        (7900, 'JAMES',  'CLERK',     7698,
        TO_DATE('3-DEC-1981', 'DD-MON-YYYY'),   950, NULL, 30);
INSERT INTO EMP VALUES
        (7902, 'FORD',   'ANALYST',   7566,
        TO_DATE('3-DEC-1981', 'DD-MON-YYYY'),  3000, NULL, 20);
INSERT INTO EMP VALUES
        (7934, 'MILLER', 'CLERK',     7782,
        TO_DATE('23-JAN-1982', 'DD-MON-YYYY'), 1300, NULL, 10);



CREATE TABLE DEPT
       (DEPTNO NUMBER(2),
        DNAME VARCHAR2(14),
        LOC VARCHAR2(13) );

INSERT INTO DEPT VALUES (10, 'ACCOUNTING', 'NEW YORK');
INSERT INTO DEPT VALUES (20, 'RESEARCH',   'DALLAS');
INSERT INTO DEPT VALUES (30, 'SALES',      'CHICAGO');
INSERT INTO DEPT VALUES (40, 'OPERATIONS', 'BOSTON');




CREATE TABLE SALGRADE
        (GRADE NUMBER,
         LOSAL NUMBER,
         HISAL NUMBER);

INSERT INTO SALGRADE VALUES (1,  700, 1200);
INSERT INTO SALGRADE VALUES (2, 1201, 1400);
INSERT INTO SALGRADE VALUES (3, 1401, 2000);
INSERT INTO SALGRADE VALUES (4, 2001, 3000);
INSERT INTO SALGRADE VALUES (5, 3001, 9999);

COMMIT;


0 comments:

Home

0
      JAVA is a distributed technology developed by James Gosling, Patric Naugton, etc., at Sun Micro System has released lot of rules for JAVA and those rules are implemented by JavaSoft Inc, USA (which is the software division of Sun Micro System) in the year 1990. The original name of JAVA is  OAK (which is a tree name). In the year 1995, OAK was revised and developed software  called JAVA (which is a coffee seed name).

JAVA released to the market in three categories J2SE (JAVA 2 Standard Edition), J2EE (JAVA 2 Enterprise Edition) and J2ME  (JAVA 2 Micro/Mobile Edition).

i. J2SE is basically used for developing client side applications/programs.

ii. J2EE is used for developing server side applications/programs.

iii.J2ME is used for developing server side applications/programs.

If you exchange the data between client and server programs (J2SE and J2EE), by default JAVA is having  on  internal  support  with  a  protocol  called  http.  J2ME  is  used  for  developing  mobile applications and  lower/system  level applications.  To  develop  J2ME  applications  we  must  use  a protocol called WAP (Wireless Applications Protocol).

FEATURES OF JAVA:

1)SIMPLE:
Java is a simple programming language,learning and practising java is eay because of its resemblence with C and C++.Also complex topics of C and C++ are eliminated in java.

2)OBJECT ORIENTED:
Unlike C++ Java is a purely object oriented programming  language.Java programs use objects and classes.

3)DITRIBUTED:
Information is distrbuted on various computers on a network.Using java we can write programs which capture information and distribute it to clients.

4)ROBUST:
Java programs will not crash easily because of its exception handling and its memory management features.

5)SECURE:
Java enables the construction of virus free and tamper free systems.

6)ARCHITECTURE NEUTRAL:
Java byte code is not machine dependent .It can be run any machine with any processor and with any operating system.

7)PORTABLE:
Java programs gives same results on all machines.

8)INTERPRETED:
Java programs are compiled to generate the byte code.This byte code can be downloaded,and interpreted by the interpreter in JVM.
Interpreter is a part of JVM which converts bytecode to machine code.

9)HIGH PERFORMANCE:
Along with interpreter,there is JIT compiler in JVM. JIT:Just in time,JIT compiler increases the speed of execution.

10)MULTITHREADED:
We can create several processes in java,called threads.This is an essential feature to design server side programs.

11)DYNAMIC:
We can develop programs in java which dynamically.


JVM:
Java Virtual Machine(JVM) is a program,that converts byte code instructions into machine code instructions. JVM is system dependent. Java programs are platform independent because they can be executed on any other computer.

SECURITY PROBLEMS FOR DATA ON INTERNET:

1)Eavesdropping:Reading others data illegally.
  sol:encryption/decryption

2)Tampering:Not only reading others data but also modifying it.
  sol:encryption/decryption

3)Impersonation:A person posing as another person on internet.
  sol:Digital signature

4)Virus:Virus is a computer program that causes damage to data,software and hardware of a computer system.
   sol: .class




The first java program keywords explanation:


0 comments:

The first java program keywords brief explanation

0
The first java program keywords brief explanation:




0 comments:

Write a program to print bellow statements in three lines James Gosling The father of the Java programming language.

0


// Write a program to print bellow statements in three lines
//James Gosling The father of the Java programming language.


/* o/p:       James Gosling
The father of the
Java
programming language. */


class PrintAndPrintlnDemo{

     public static void main(String[] args){

     System.out.print("James ");

     System.out.println("Gosling");

     System.out.print("The ");

     System.out.println("father of the ");

     System.out.println("Java");

     System.out.print("programming ");

     System.out.print("language. ");

     }


compilation:

d:\>javac PrintAndPrintlnDemo.java

Execution:

d:\>java PrintAndPrintlnDemo

Out Put:

                James Gosling
The father of the
Java
programming language.

0 comments:

FirstProgram

0
/* Java First program */

class FirstProgram{

    public static void main(String[] args){

       System.out.println("Welcome to www.netlojava.blogspot.com");

        }

     }



compilation:

d:\>javac FirstProgram.java

Execution:

d:\>java FirstProgram

Out Put:

Welcome to www.netlojava.blogspot.com


0 comments:

Day2:Software

0
Day2:Software



Software is a development process which converts the  imaginaries into  reality by writing comes set of programs.

0 comments:

Recent Posts