Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Core JAVA presentation for 1st year students
1. POORNIMA INSTITUTE OF ENGINEERING
AND TECHNOLOGY
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
A PRESENTATION ON THE TOPIC
“CORE JAVA”
FOR
INDUSTRIAL TRAINING(III SEMESTER)
SUBMITTED BY:
YASH KOOLWAL
SECTION:C(C2)
PIET18CS153
CS DEPARTMENT
SUBMITTED TO:
MR.AASHU SHARMA
Dr. RAKHI MUTHA
2. COMPANY PROFILE
Samyak Computers is a special education vehicle to provide the
expert and advance knowledge of today and tomorrow's IT industries
requirement. We provide the training with skills to understand the
topics and per second changing parameters of IT environment.
SERVICES-
•SOFTWARE PROGRAMMING LANGUAGES
•WEB DEVELOPMENT TRAINING
•BASIC COURSE TRAINING OF RSCIT,OFFICE AUTOMATION,DTP
The name of my trainer is Mr. Ranjeet Choudhary.
4. HISTORY OF JAVA
Java was conceived by James Gosling , Patrick Naughton ,
Chris Warth , Ed Frank and Mike Sheridan at Sun
Microsystems , inc. in 1991.
It took 18 months to develop the first working version. This
language was initially called “oak”, but was renamed
“Java” in 1995.
Later “oracle” took over Java.
5. WHAT IS JAVA?
Java is a general-purpose, concurrent, class-based,
object-oriented Computer programming Language .
It is intended to let application developers "write once,
run anywhere" (WORA)
It is simple , portable , architecture-neutral and multi-
threaded.
6. OOP?
The Three OOP Principles
All object-oriented programming languages provide mechanisms that help you implement
the object-oriented model. They are encapsulation, inheritance, and polymorphism.
Class
is a user defined data type, which holds its own data members and member functions, which can be accessed and used
by creating an instance of that class.
Object
is an instance of class. It is real implementation of Class.
Encapsulation
Encapsulation is the mechanism that binds together code and the data it manipulates.
Inheritance
Inheritance is the process by which one object acquires the properties of another object.
Polymorphism
Polymorphism is a feature that allows one interface to be used a general class Of actions. The specific action is
determined by the exact nature of the situation.
8. JAVA COMPILER
Java’s compiler and editor are both different.
Java’s compiler is called jdk i.e. java development kit.
Java releases a new compiler every 6 months and the
latest version goes by jdk 12 which came on march
19,2019.
The editors used in java to write programs are as
follows:
o Notepad
o Jcreator
o Ecllipse
o netbeans
10. COMMENTS IN JAVA
There are three types of comments in Java:
1.Single Line comments //
2.Multi Line comments /* */
3.Special Javadoc comments /**
*
*/
11. JAVA IDENTIFIERS
Identifiers are the tokens that represents names of
variables, classes, methods, etc.
Examples of identifiers are: Hello, main, System, out.
Java Identifiers are case sensitive means that the
identifier ‘Hello’ is not same as ‘hello’.
They must begin with either a letter, an underscore “_”
or a Dollar Sign “$”. Letters may be lower or upper case.
Subsequent characters may use numbers 0 to 9.
Identifiers cannot use Java keywords like class, public,
void, etc.
12. INPUT FROM KEYBOARD
INPUT FROM KEYBOARD
INPUT FROM KEYBOARDINPUT FROM KEYBOARD
In Java, Scanner is a predefined class which is used to take
keyboard input in Java, but this class is defined inside
‘java.util’ package.
In order to use this class, you need to import this package
first otherwise your compiler will show an error.
This class contains many methods which are used to get
input from keyboard: nextInt(); nextFloat(); nextDouble();
nextBoolean(); etc.
13. BASIC PROGRAM IN JAVA
import java.util.*;
Public class A
{
Public static void main(String Args[])
{
Scanner sc=new Scanner(System.in);
System.out.println(“Enter first number”);
int a=sc.nextInt();
Scanner sca=new Scanner(System.in);
System.out.println(“Enter second number”);
int b=sca.nextInt();
System.out.println(“Sum=“+(a+b));
}
}
14. BASIC PROGRAM IN JAVA
Inheritance:
class Details
{
private int sp;
private int m;
private int s;
public void fun(int sm,int mm,int ss)
{
sp=sm;
m=mm;
s=ss;
int arg=(sp+m+s)/2;
System.out.println(“res=“+arg);
}
15. BASIC PROGRAM IN JAVA
Inheritance:
class Details
{
private int sp;
private int m;
private int s;
public void fun(int sm,int mm,int ss)
{
sp=sm;
m=mm;
s=ss;
int arg=(sp+m+s)/2;
System.out.println(“res=“+arg);
}
16. class Student extends Details
{
private String name;
public void getname(String n)
{
name=n;
System.out.println(“Name=“+name);
}
}
public class Result
{
Public static void main(String args[])
{
Student s1=new Student();
s1.fun(20,30,40);
s1.getname(“Yash”);
}
}
17. ADVANTAGES
IT IS AN EASY LANGUAGE.
IT DOES NOT SUPPORT POINTER WHICH MAKE IT SECURE.
PLATFORM-INDEPENDENT.
JVM HELPS IN AN EFFICIENT CODE OPTIMISATION SO THE
PERFORMANCE OF EXECUTION IS BETTER.
18. DISADVANTAGES
JAVA CODE RUNNING TIME IS SLOWER THAN C THAT’S
WHY FRAMEWORK CODE IS STILL WRITTEN IN C.
SINCE IT WORKS ON TOP OF JVM ,IT TAKES MORE
MEMORY.
NO SUPPORT FOR LOW LEVEL PROGRAMMING , LIKE
POINTERS ARE MISSING.