Module1 Chapter3 Core Java
Module1 Chapter3 Core Java
MANUAL V8.3
MODULE CODE:
DL.A.01.01
ANUDIP FOUNDATION
Trainer
Manual Core Java
1
Trainer
Manual Core Java
Chapter 3
2
Trainer
Manual Core Java
Chapter 3
A Java Integrated Development Environment, abbreviated as Java IDE, is an environment for Java programming. It is a
software application consisting of a code editor, an interpreter or compiler, and a debugger. All components and
features of IDEs are accessed by programmers through a GUI (graphical user interface).
Both of these IDEs offer the fundamental features and functionalities required for developing Java applications. Take
a look at some information regarding these two Java IDEs below.
i) Eclipse IDE
Eclipse is the most widely used Java IDE. It is an open source and free development environment that also supports
several other programming languages. Eclipse can be installed on the 32-bit and 64-bit versions of Windows, macOS
and Linux operating systems. It is available for free download at eclipse.org. Programs created on the Eclipse IDE are
licensed to the Eclipse Public License (EPL).
3
Trainer
Manual Core Java
Eclipse features -
* Supports many plugins and extensions
* Code completion ensures lesser code writing
* Refactoring enhances and simplifies code
* Syntax checking aids code corrections while writing
4
Trainer
Manual Core Java
NetBeans features -
Java programming syntax is the set of rules and standards for writing code correctly. Programmers must learn Java
syntax to write a valid program. The syntax of Java programming is quite similar to C and C++ languages. Java syntax
grows with the latest versions of the Java Development Kit (JDK).
5
Trainer
Manual Core Java
In Java syntax -
* Values are known as ‘objects’
* Code belongs to ‘classes’
* Primitive data types are not assigned ‘classes’
Class Names − The first letter of a class name should be in Upper Case. If the class name has multiple words,
the first letter of each word has to be in Upper Case.
Example: class JavaProgramDemoClass
Case Sensitivity − Java is a case sensitive programming language. Lower and upper case identifiers can have
different meanings. For example, java and Java are different.
Program File Name - A program file’s name has to match a class name. For example, if the class name is
‘JavaDemoExample’, the program file has to be saved as ‘JavaDemoExample.java’.
Method Names - Method names in Java have to start with lowercase letters. If the method name consists of multiple
words, the first letter of each inner word has to be in upper case.
Example - public void myMethodName()
6
Trainer
Manual Core Java
public static void main(String args[]) - Program processing in Java begins from the main () method
Identifier Names - The names used for variables, methods, or classes - should contain numeric characters, alphabetic
characters, connecting characters and currency characters. Identifier names cannot start with a numeric character.
* Command line argument - A command line argument in Java is one that is passed during the time of running a Java
program. The passed arguments can be received in the Java program and utilised as input. The information is stored
in the form of a string array within a main method. The number of command line arguments can be specified by a
programmer.
Output:
7
Trainer
Manual Core Java
Output:
Practical (30 minutes) - Search, download and install the Eclipse and NetBeans IDE applications on a computer
system.
8
Trainer
Manual Core Java
Instructions: The progress of students will be assessed with the exercises mentioned below.
MCQ
a) Decoding
b) Debugging
c) Development
2. The features of a Java IDE application can be accessed through a graphical ______ interface.
a) installation
b) display
c) user
d) computer
3. Two of the most popular Java IDEs are Eclipse and __________.
a) NetBeans
b) NetScape
c) NetJava
d) NetFrame
a) Yes
9
Trainer
Manual Core Java
b) No
a) increases
b) rejects
c) reduces
a) C++
b) C
c) Html
d) a and b
10
Trainer
Manual Core Java
8. New Java syntax is introduced with newer versions of Java ___________ Kits.
a) Deployment
b) Development
c) Disintegration
a) objects
b) tables
c) data arrays
a) array
b) class
c) function
11