Basics in Java
Basics in Java
E
JAVA PROGRAMMING
STATEMENT
UNIT-I: BASICS,ESSENTIALS, CONTROL
|AND CLASSES & OBJECTS
Computer and its LanguagesStage, Origin and
Essentials: Program API
Features for Java JDK-0OP; Java
Variables& Literals-Data Types - String Class -Operators-
Keyboard
Comments
Type conversion -Constants Scope
-
- Garbage Collection.
Tokenizer class.
catch block Nested
Exception Basics: try and catch block- Mutu
- try throws keyword Throw vs Throws
-
- Final
-
thread application -
Swing
Unit V: JAVA DATABASE CONNECTIVITY
Classes and
DBC - Types of Drivers- Architecture-
and
Interfaces Developing JDBC Application New Database
-
4. Portable
5. Platfom independent
6. Secured
7. Robust
8. Dynamic
9. High Performance
10. Multi-threaded
11. Distributed
1. Simple
Java interpreter
converts the
binary code. This phase is called as bytecode into processor readaoe
Interpretation.
JavaProgramm
1.10
DEVELOPMENT KIT (JDK)
1.4 JAVA consists.
JDK is a software development environment. JDK
to develop, compile, debug and run Ja
variety of programming tools
applications and applet programs.
Some of the basic tools are,
i. javac
ii. java
il. javadoc
iv. jdb
V. javah
vi. javap
vii. appletviewer
i. javac
The Java compiler, which is used to converts source codeim
byte code.
ii. java
The Java interpreter which runs Java applications and applet
by reading and interpreting byte code files.
ii. javadoc
It creates HTML format documentation from Java source cot
files.
iv. jdb
The Java debugger,
which is used to find errors in our progra
v. javah
It produces C header and stub generator. It was used to w>
native methods.
vi. javap
deal.
2. Class
6. Encapsulation
Binding (or wrapping) code and data together into a single uni
is known as encapsulation.
In Java, we use class to achieve encapsulation.
7. DynamicBinding
Binding refers to the "linking of procedure call to the code" i
known as dynamic binding.
Object
Information
Method
Communication operator
Basics, Esserntials, Control Statement and Classes &Objects 1.15
Developing and Running the Java application (stand alone)
programs
Java Program
Javac Compile
Java Run
ton m Output
class javademo
To save this program, class name must be same as the program name.
Save :javademo.java
Compile: javac javademo.java
Run java javademo
Java Programni
1.16
Output ***************
1.7.1 Literals
Literal is nothing but any number, text, or other informatia
that represents a constant or fixed value. Java
literals. provides 5 types o
1. Integer Literals