0% found this document useful (0 votes)
44 views

1.Introduction:Download and Install JDK

The document discusses several topics related to Java: 1. It introduces the Java Development Kit (JDK) which contains development tools like compilers and debuggers, and the Java Runtime Environment (JRE). 2. It discusses how Java uses both compilers and interpreters and is a two-stage approach. 3. It lists several features of Java including being simple, object-oriented, distributed, robust, secure, architecture neutral, portable, high performance, and multithreaded.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

1.Introduction:Download and Install JDK

The document discusses several topics related to Java: 1. It introduces the Java Development Kit (JDK) which contains development tools like compilers and debuggers, and the Java Runtime Environment (JRE). 2. It discusses how Java uses both compilers and interpreters and is a two-stage approach. 3. It lists several features of Java including being simple, object-oriented, distributed, robust, secure, architecture neutral, portable, high performance, and multithreaded.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

1.

Introduction :Download and install JDK

(JDK)Java development kit : contains development tools like


compiler and debugger.
(JRE)Java run time environment.

https://www.oracle.com/java/technologies/javase/javase-jdk8-
downloads.html
1.Introduction :compiler vs interpreter

Java uses both compiler and interpreter programing language.


java Buzzwords or Features of Java

•Simple- Java was designed to be easy for professional programmer to learn and use effectively.
•Object oriented -
•Distributed- Java is designed for distributed environment of the Internet. Its used for creating applications on networks
•Interpreted-
Usually a computer language is either compiled or Interpreted. Java combines both this approach and makes it a two-stage.
•Robust –
Java is a strictly typed language. It checks code both at compile time and runtime.
Java takes care of all memory management problems with garbage-collection.
Java, with the help of exception handling captures all types of serious errors and eliminates any risk of crashing the system.
•Secure-
Java provides a “firewall” between a networked application and your computer.
When a Java Compatible Web browser is used, downloading can be done safely without fear of viral infection or malicious intent.
Java achieves this protection by confining a Java program to the java execution environment and not allowing it to access other parts of the
computer.
•Architecture neutral
Java language and Java Virtual Machine helped in achieving the goal of “write once; run anywhere, any time, forever.”
•Portable
•High performance
•Multithreaded
•Dynamic
Introduction :Skelton of java

• In java everything is in classes even main method also in class.


• Class name should be same as file.
• Main method no return type,void always.
• Public to give access outside to jvm.
• Static – without creating objects we can call main method.
• String[] args –command line argument , always we need to write.
• System.out.println are used to print output in screen.
2.Data Type

•Primitive Data Type: such as boolean, char, int, short, byte,


long, float, and double
•Non-Primitive Data Type or Object Data type: such as
String, Array, etc.
2.Data Type : varaibles

A variable is a name given to a memory location. It is the basic unit of storage in a program. 
•The value stored in a variable can be changed during program execution.
•A variable is only a name given to a memory location, all the operations done on the variable
effects that memory location.
•In Java, all the variables must be declared before use.
String Methods

Int length() – returns length of a string


String toLowerCase()- converts given string to lower case.
String toUpperCase()- converts given string to upper case.
String trim()
String SubString(int begin)
String SubString(int begin, int end)
String replace (char old , char new)
Boolean StartsWith(String S)
Bollean endswith(string s)
Char charAt(int index)

You might also like