100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Interview

java programming| java basics | java tutorial | java tutorial for beginners

Rating
-
Sold
-
Pages
23
Uploaded on
26-08-2022
Written in
2022/2023

java programming| java basics | java tutorial | java tutorial for beginners java,java programming,java basics,java tutorial,java tutorial for beginners,learn java,java full course,java for beginners,java course,basic oops concepts in java /easy notes,java training,java programming for beginners,what is java,java basics for testers,java basic concepts,basic java interview,basic java questions,java features,java - basic syntax,features of java,basic java interview questions,java interview questions,introduction to java

Show more Read less
Institution
Course










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Secondary school
School year
1

Document information

Uploaded on
August 26, 2022
Number of pages
23
Written in
2022/2023
Type
Interview
Company
Unknown
Person
Unknown

Subjects

Content preview

Java Basics




Java Basics
Topics in this section include:

• What makes Java programs portable, secure, and robust
• The structure of Java applets and applications
• How Java applications are executed
• How applets are invoked and executed

• The Java Language, Part I

• Comments

• Declarations

• Expressions

• Statements
• Garbage collection
• Java Semantics

Portability
Java programs are portable across operating systems and hardware environments.
Portability is to your advantage because:

• You need only one version of your software to serve a broad market.


• The Internet, in effect, becomes one giant, dynamic library.


• You are no longer limited by your particular computer platform.


Three features make Java String programs portable:

1. The language. The Java language is completely specified; all data-type sizes and
formats are defined as part of the language. By contrast, C/C++ leaves these
"details" up to the compiler implementor, and many C/C++ programs therefore

are not portable.


. Java Basics -1

,Java Basics



2. The library. The Java class library is available on any machine with a Java
runtime system, because a portable program is of no use if you cannot use the
same class library on every platform. Window-manager function calls in a Mac
application written in C/C++, for example, do not port well to a PC.

3. The byte code. The Java runtime system does not compile your source code
directly into machine language, an inflexible and nonportable representation of
your program. Instead, Java programs are translated into machine-independent
byte code. The byte code is easily interpreted and therefore can be executed on
any platform having a Java runtime system. (The latest versions of the Netscape
Navigator browser, for example, can run applets on virtually any platform).

Security
The Java language is secure in that it is very difficult to write incorrect code or
viruses that can corrupt/steal your data, or harm hardware such as hard disks.
There are two main lines of defense:

• Interpreter level:
• No pointer arithmetic
• Garbage collection
• Array bounds checking
• No illegal data conversions
• Browser level (applies to applets only):

• No local file I/O
• Sockets back to host only
• No calls to native methods

Robustness
The Java language is robust. It has several features designed to avoid crashes
during program execution, including:

• No pointer arithmetic

• Garbage collection--no bad addresses
• Array and string bounds checking


Java Basics -2 .

, Java Basics



• No jumping to bad method addresses

• Interfaces and exceptions

Java Program Structure
A file containing Java source code is considered a compilation unit. Such a
compilation unit contains a set of classes and, optionally, a package definition to
group related classes together. Classes contain data and method members that
specify the state and behavior of the objects in your program.

Java programs come in two flavors:

• Standalone applications that have no initial context such as a pre-existing main
window

• Applets for WWW programming
The major differences between applications and applets are:

• Applets are not allowed to use file I/O and sockets (other than to the host
platform). Applications do not have these restrictions.

• An applet must be a subclass of the Java Applet class. Aplications do not need to
subclass any particular class.

• Unlike applets, applications can have menus.
• Unlike applications, applets need to respond to predefined lifecycle messages
from the WWW browser in which they're running.

Java Program Execution
The Java byte-code compiler translates a Java source file into
machineindependent byte code. The byte code for each publicly visible class is
placed in a separate file, so that the Java runtime system can easily find it. If your
program instantiates an object of class A, for example, the class loader searches
the directories listed in your CLASSPATH environment variable for a file called
A.class that contains the class definition and byte code for class A.

There is no link phase for Java programs; all linking is done dynamically at

runtime.




. Java Basics -3
R71,02
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
gkखुराक़1

Get to know the seller

Seller avatar
gkखुराक़1
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
3 year
Number of followers
0
Documents
11
Last sold
-
computer science notes | Utory | UtoryNotes

computer science notes 2nd puc computer science notes igcse computer science notes class 11 computer science notes a level computer science notes class 12 computer science notes 1st puc computer science notes computer science notes class 12 python computer science notes pdf 9618 computer science notes bsc computer science notes pdf download computer science notes a level computer science notes a level pdf computer science notes as computer science a2 notes computer science architecture notes computer science revision notes a level ap computer science a notes computer science focus area notes first year computer science notes adamjee computer science focus area notes plus two a level computer science notes pdf download as computer science notes a level computer science notes pdf a2 computer science notes apni kaksha computer science notes advanced level computer science notes pdf ap computer science notes pdf ahmed thakur computer science notes a level computer science notes zimsec computer science bsc notes basic computer science notes pdf 1st year computer science notes pdf bsc computer science notes boolean algebra class 12 computer science notes pdf computer science notes boolean logic class 11 computer science notes 2nd year computer science notes pdf bsc 3rd year computer science notes b tech computer science notes pdf computer science notes class 12 computer science notes class 11 computer science notes class 12 term 2 computer science notes class 11 pdf computer science notes class 12 pdf computer science notes class 12th computer science notes class 10 computer science notes class 12 pseb in english medium computer science notes class 12 pseb in punjabi medium class 11 computer science notes pdf class 10 computer science notes seba class 11 computer science notes python class 10 computer science notes class 11 computer science notes chapter 1 class 9 computer science notes class 10 computer science notes seba chapter 1 class 12 computer science notes pdf computer science notes download computer science dbms notes pdf computer studies notes download computer science degree notes computer science diploma notes computer science database notes computer science degree summary computer science notes for dsssb tgt gate computer science notes download 11th computer science notes download diploma in computer science notes pdf discrete mathematics for computer science notes pdf discrete structures in computer science notes dsssb tgt computer science notes pdf discrete mathematics for computer science notes degree first year computer science notes pdf download a level computer science notes pdf dsssb pgt computer science notes pdf dsssb computer science notes dbms computer science notes computer science engineering notes pdf edexcel igcse computer science notes 10th class computer science notes in english medium 9th class computer science notes in english pdf pedagogy of computer science notes electronic notes in theoretical computer science computer science engineering notes 9th class computer science notes english medium pdf software engineering notes for bsc computer science pedagogy of computer science b ed-notes in hindi computer science notes for class 11 chapter 1 computer science notes free download computer science notes for class 12 computer science notes for ugc net computer science notes for cuet computer science notes for class 11 pdf download computer science notes for kvs pgt computer science notes for competitive exams pdf computer science notes for class 11 computer science notes for class 12 pdf download first year computer science notes pdf first puc computer science notes fundamentals of computer science notes fbise class 10 computer science notes foundations of computer science notes function class 12 computer science notes fbise 9th class computer science notes first year computer science notes pdf form 1 computer science notes computer science notes github computer science notes gcse computer science notes gcse ocr computer science notes grade 10 computer science notes grade 9 computer science gate notes computer science gate notes pdf computer science gcse notes pdf hseb computer science notes grade 12 computer studies notes for grade 8 and 9 pdf gcse computer science notes grade 11 computer science notes grade 12 computer science notes gate computer science notes gcse ocr computer science notes pdf gcse computer science notes pdf gate computer science notes pdf grade 9 computer science notes grade 10 computer science notes gcse ocr computer science notes computer science notes hsslive computer science notes hindi computer science handwritten notes computer science handwritten notes pdf computer science html notes computer science hl notes computer science htet notes computer science notes in hindi pdf ib computer science hl notes pdf computer science 12th hsc notes hsslive plus one computer science notes hssc 2 computer science notes htet computer science notes pdf hssc 1 computer science notes how to take computer science notes hsc computer science notes htet pgt computer science notes pdf hbse class 12 computer science notes how to make computer science notes computer science notes in hindi computer science notes igcse computer science notes in pdf computer science notes in punjabi computer science notes ib computer science igcse notes pdf computer science igcse notes 2022 computer science introduction notes computer studies notes internet and email ii puc computer science notes i puc computer science notes igcse computer science notes pdf ib computer science notes igcse computer science notes pdf download introduction to computer science notes ib computer science notes pdf igcse computer science notes 2021 isc class 12 computer science notes computer science notes jee computer science notes jee mains computer science notes jaiib computer science notes jmi computer science notes jnu computer science notes jobs computer science notes jobs salary computer science notes jokes computer science notes job opportunities computer science notes journals jac class 12 computer science notes jntuk r19 fundamentals of computer science notes java notes pdf for computer science adamjee notes class 11 computer science lecture notes in computer science journal computer science java notes lecture notes in computer science jcr computer science java notes pdf computer programming ktu notes xi computer science notes karachi board xii computer science notes karachi board 2nd puc computer science notes kseeb solutions 2nd year computer science notes kpk board class 11 computer science notes karnataka computer science notes for class 12 karachi board kvs pgt computer science notes pdf kerala university bsc computer science notes keerthi kumar computer science notes karnataka 1st puc computer science notes kset computer science notes kvs computer science notes karnataka diploma computer science notes kseeb 2nd puc computer science notes ktu s3 computer science notes ktu computer science notes computer science lecture notes pdf computer science lecture notes computer science notes o level computer science notes o level pdf computer studies lesson note computer studies notes - o level computer science student summary linkedin leaving cert computer science notes lt grade computer science notes pdf latest computer science notes learn cbse class 11 computer science notes o level computer science notes zimsec a level computer science notes pdf zimsec o level computer science notes pdf o level computer science notes pdf download computer science notes mbbs 1st year computer science notes mba computer science notes mcq computer science notes msc computer science notes mbbs computer science notes major computer science notes masters computer science notes minor computer science notes masters programs computer science notes meaning majid tahir computer science notes mathematical foundation of computer science notes pdf computer science notes pdf made easy computer science notes mdr puc computer science notes mathematical foundation of computer science notes pdf for mca maharashtra hsc computer science notes pdf madras university bsc computer science notes mit computer science notes m tech computer science notes computer science notes notion computer science networking notes computer science net notes 10th class computer science notes new syllabus class 11 computer science notes nepal 9th class computer science notes new syllabus class 12 computer science notes new syllabus computer science class 12 networking notes pdf nios computer science notes pdf computer science class 11 ncert notes nirman campus computer science notes nios class 12 computer science notes number system class 11 computer science notes ncert class 12 computer science notes net computer science notes neb class 12 computer science notes ncert class 11 computer science notes nus computer science notes neb class 11 computer science notes computer science notes of class 11 computer science notes of lesson computer science notes on ipad computer studies notes - o level pdf computer science ocr notes computer science notes plus one o level computer science notes pdf ocr a level computer science notes ocr gcse computer science notes ocr computer science notes ocr a level computer science notes pdf ordinary level computer science notes pdf operating system computer science notes plus one computer science notes computer science notes pdf free download computer science notes pdf class 12 computer science notes pdf class 11 computer science notes pseb computer science notes pdf form 1 computer science notes pdf a level computer science notes pdf o level plus one computer science notes pdf download puc computer science notes pedagogy of computer science notes plus one computer science notes pdf pseb computer science notes pgt computer science notes pdf pdf computer science notes polytechnic computer science notes computer science notes question bank computer science notes question paper computer science notes questions and answers computer science notes questions computer science notes qspiders computer science notes quotes computer science notes questions and answers pdf computer science notes quiz computer science notes qs rankings computer science notes qut hsslive plus two computer science quick revision notes plus one computer science quick revision notes lecture notes in computer science quartile computer science notes quizlet q learning q value computer science queen's requirements quantum computing facts quantum computing quotes quantum computing code example computer science revision notes pdf computer science summary resume gcse computer science revision notes pdf computer science revision notes research methodology in computer science lecture notes class 12 computer science python revision tour notes igcse computer science revision notes 1st puc computer science data representation notes research methodology in computer science lecture notes ppt information retrieval lecture notes in computer science computer science a level revision notes computer science notes semester 2 computer science notes study iq computer science notes ssc computer science notes salary computer science notes subjects computer science notes subjects in 11th computer science notes syllabus computer science notes syllabus class 12 computer science notes scholarships computer science notes salary philippines second puc computer science notes security and ethics in computer science notes second year computer science notes ssc 2 computer science notes save my exams computer science notes second year computer science notes pdf society law and ethics class 11 computer science notes computer science notes term 2 computer science note taking computer science note taking reddit computer science trb notes 12th computer science notes tamil medium computer science notes plus two 11th computer science notes tamil computer programming taking notes computer scientist take notes class 12 computer science notes term 2 tybsc computer science notes pdf tybsc computer science notes pdf pune university trb computer science notes pdf theory of computer science notes tgt computer science notes pdf theoretical computer science notes theoretical foundation of computer science notes trb polytechnic computer science notes pdf thiruvalluvar university bsc computer science notes theoretical computer science notes pdf computer science notes upsc computer science notes upsc pdf computer science notes ugc net computer science notes university ranking computer science notes unsw computer science notes unisa computer science notes university ranking uk computer science notes ubc computer science notes university computer science notes uoft ugc net computer science notes ugc net computer science notes free download pdf ugc net computer science notes on made easy ugc net 2021 computer science notes ucl computer science notes ugc net computer science handwritten notes 10th class computer science notes in urdu pdf unique notes for 9th class computer science 2020 unique notes for 10th class computer science 9th class computer science notes in urdu pdf computer science notes vision ias computer science notes vedantu computer science notes vit computer science notes viva questions computer science notes vit vellore computer science notes vs software engineering computer science notes vs information technology computer science notes vs engineering computer science notes vs cyber security computer science notes vs electrical engineering victers plus one computer science notes virtual university computer science notes vtu computer science notes vtu 6th sem computer science notes vtu m tech computer science notes visual basic notes for bsc computer science kendriya vidyalaya computer science class 12 notes vssut lecture notes computer science bsc computer science visual basic notes pdf springer lecture notes in computer science volume 13127 computer science notes wto computer science notes with diagram computer science notes with answers computer science notes waterloo computer science notes wikipedia computer science notes wits computer science notes with python class 11 pdf computer science notes with python class 11 computer science notes wallpaper computer science notes work experience computer science notes wjec computer science notes ter science 10th class computer science notes chapter wise class 12 computer science chapter wise notes pdf web technology notes for computer science computer science with python class 12 notes pdf download computer science with python class 11 sumita arora notes 10th class computer science notes chapter wise in urdu computer science with python class 11 notes class x computer science notes seba class xii computer science notes class notes xyz class 12 computer science xyz notes class 11 computer science class notes xyz class 10 computer science class xi computer science notes class x computer science notes computer science notes 1st year computer science notes 2nd year computer science 2nd year notes kpk board computer science bsc 1st year notes 1st year computer science notes pdf download 2nd year computer science notes pdf download 2nd year computer science notes 2nd year computer science notes punjab board 1st year computer science notes federal board puc 2nd year computer science notes puc 1st year computer science notes 1st year computer science notes pdf download fbise zimsec o level computer science notes pdf download zjc computer science notes pdf zafar ali khan computer science notes zimsec computer science notes zain merchant computer science notes zahid notes 2nd year computer science zahid notes 1st year computer science a level computer science notes zak computer science notes 0478 0478 computer science notes z notes computer science 0478 computer science notes 12 computer science notes 1st puc computer science notes 11th class computer science notes 1st year bsc computer science notes 1st year fbise computer science notes 10th class computer science 12th notes computer science 10th notes computer studies notes 10-12 12th computer science notes pdf 11th computer science notes 10 class computer science notes computer science notes 2nd puc computer science notes 2210 computer science 2210 notes pdf computer science 2 notes computer science notes form 2 pdf igcse computer science notes 2020 igcse computer science notes 2023 computer science notes for 2nd year federal board 2210 computer science notes 2nd year computer science notes sindh board 2nd year computer science notes karachi board 2nd year computer science notes pdf download fbise computer science notes form 3 pdf computer science 3rd sem notes bsc computer science 3rd year notes pdf computer science class 10 chapter 3 notes class 11 computer science chapter 3 notes class 12 computer science chapter 3 notes class 10 computer science notes seba chapter 3 computer science class 9 chapter 3 notes computer science a level paper 3 notes computer science notes for class 10 federal board pdf computer science notes for class 9 punjab board new syllabus computer science notes for class 9 sindh board computer science notes for class 11 sindh board computer science notes for class 9 sindh board new syllabus computer science notes for class 12 sindh board computer science notes for class 9 free download computer science notes for class 12 sindh board adamjee computer science notes for class 9 federal board pdf degree 4th sem computer science notes pdf computer science class 10 chapter 4 notes class 10 computer science notes seba chapter 4 class 11 computer science chapter 4 notes class 11 computer science chapter 4 notes python computer science form 4 notes computer science a level paper 4 notes plus one computer science chapter 4 notes ib computer science topic 4 notes computer science notes form 5 computer science chapter 5 notes computer science 5th sem notes bsc 5th sem computer science notes class 11 computer science chapter 5 notes class 10 computer science notes seba chapter 5 computer science class 10 chapter 5 notes notes on computer science basic 5 form 5 notes computer science computer science notes for 6th class 6th class computer science notes diploma computer science 6th sem notes pdf class 11 computer science chapter 6 notes computer science class 10 chapter 6 notes class 10 computer science notes seba chapter 6 computer science notes for 7th class class 11 computer science chapter 7 notes class 10 computer science notes seba chapter 7 class 7 ch 7 science notes 7 cs with examples 7th of a chord number 7 in science computer science notes class 8 computer science notes for 8th class computer science numbers 8th class computer science notes pdf 8th class computer science notes cbse class 8 computer science notes best computer notes computer science notes 9th class computer science notes 9618 computer science notes 9th computer science 9608 notes computer science 9618 notes pdf computer science notes for 9th class english medium computer science notes class 9 seba 9th computer science notes 9th class computer science notes 9608 computer science notes 9th computer science notes 2020 9th computer science notes pdf class 9 computer science notes karachi board

Read more Read less
0,0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions