Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
125 views

Java Training Tutorials

This document provides an overview of the core Java syllabus and concepts. It discusses: 1. Core Java covers the fundamental concepts of the Java programming language including object-oriented programming principles, packages, data types, variables, methods, constructors, modifiers, and keywords. 2. The core Java syllabus includes topics such as basic Java syntax, classes and objects, packages, data types, variables, methods, constructors, modifiers like public and private, and keywords like static and final. 3. Core Java concepts that are important to understand include object-oriented programming principles like encapsulation, inheritance, and polymorphism, as well as exception handling, packages, collections, multithreading, and basic

Uploaded by

sreedharkundir
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
125 views

Java Training Tutorials

This document provides an overview of the core Java syllabus and concepts. It discusses: 1. Core Java covers the fundamental concepts of the Java programming language including object-oriented programming principles, packages, data types, variables, methods, constructors, modifiers, and keywords. 2. The core Java syllabus includes topics such as basic Java syntax, classes and objects, packages, data types, variables, methods, constructors, modifiers like public and private, and keywords like static and final. 3. Core Java concepts that are important to understand include object-oriented programming principles like encapsulation, inheritance, and polymorphism, as well as exception handling, packages, collections, multithreading, and basic

Uploaded by

sreedharkundir
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Java

Write once, run anywhere

Sreedhar Reddy Kunduri

1
A GUIDE TO JAVA COURSE CURRICULUM AND SYLLABUS!

Core Java Syllabus

Java is among the top computer languages used for web, mobile, desktop applications, etc.
It is a programming language based on the concept of Object-Oriented Programming Systems (OOPS).

THIS TUTORIAL INCLUDES:

1. What is Core Java?


2. Java Editions
3. Concepts in Core Java
4. Core Java Syllabus
1. Basic of Java
2. Class, Objects, and Types of Classes
3. Packages in Java
4. Data Types in Java
5. Variables, Constraints, and Literals
6. Methods in Java
7. Constructor in Java
8. Modifiers in Java
9. Static Keyword
10. Final Keyword
11. Inner Class in Java
12. Super and this keyword
13. Encapsulation
14. Inheritance
15. Polymorphism
16. Abstraction
5. Complete Industrial Core Java Syllabus and Sub Topics
6. Core Java Vs. Advance Java
7. Different Types of Core Java Frameworks
 Spring
 Hibernate
 JSF (JavaServer Faces)
 GWT (Google Web Toolkit)
 Struts (The Later Version)

2
1. What is Core Java?

The term “core” refers to the fundamental notion of anything, while the phrase “Core Java” refers to the fundamental concept of the Java
programming language.
We are all aware that Java is one of the most well-known and frequently used programming languages, and that a novice should begin with
Core Java and work their
way up to Advance Java. The Java programming language is a general-purpose programming language based on the object-oriented
programming (OOPs)
paradigm. Java’s ocean is too deep to learn, i.e., the more you study, the deeper it becomes. Java is a powerful and platform-independent
programming language. J
ava follows the WORA philosophy, which stands for Write Once, Run Anywhere. The programming language is straightforward and simple
to grasp.
However, it is important to note that Core Java is not the same as Java. Although Java is self-contained, it is normal for newcomers to start
with the fundamentals of t
he language. In reality, there are several editions of Java, with Core Java being one of them.

2. Java Editions
The Java Programming Language supports the following declared editions:

Java SE (Java Standard Edition) Java SE is a computer platform that may be used to create desktop or Windows-based applications.
Thus, core Java is a portion of Java SE in which developers create desktop-based programmes utilising Java’s
fundamental ideas, with JDK (Java Development Kit) being a well-known Java SE implementation.

Java EE (Java Enterprise Edition) Also known as J2EE or Java 2 Platform. It is the enterprise platform on which a developer creates
applications for servers, i.e. enterprise development. This is the edition for web development.

Java ME (Java Micro Edition) It is the tiny version that is used for mobile phone application development. As a result, Java ME is
required for the creation of mobile apps. As a result, Core Java is clearly a part of Java SE, and Java SE serves
as the foundation for all subsequent Java versions.

3
3. Concepts in Core Java

The following are some of the most important Java fundamental topics:
Java Fundamentals
OOPs Concepts
Overloading & Overriding
Inheritance with Interface and Abstract Class
Exception Handling
Packages
Collections
 Multithreading
Swings
Applets
JDBC (Basic Database Connections)

4. Core Java Syllabus

4.1 Basic of Java


What is Java?
History and Features of Java
C++ vs. Java
Hello Java Program
Internal How to set the path?
JDK, JRE, and JVM (Java Virtual Machine)
JVM Memory Management
Internal Details of JVM
Unicode System, Operators, Keywords, and Control Statements like if-else, switch, for loop, and while loop

4.2 Class, Objects, and Types of Classes


Naming conventions of Java
Classes, objects, and features
Object declaration and initialization
The life cycle of an object
Anonymous object in Java

4.3 Packages in Java


How to declare a package in a company project
Package naming conventions
Sub packages
Types of packages such as user-defined packages, built-in packages
Importing packages in Java

4.4 Data Types in Java


Datatypes in Java
Primitive
data types
Non-primitive data types
Memory allocation of primitive and non-primitive data types 4
4.5 Variables, Constraints, and Literals
Variable declaration and initialization
Naming convention
Types of variables such as local variables, instance variables, and static variables
Scope and memory allocation of variables

4.6 Methods in Java


Methods in Java
Use of method in Java
Method declaration, the method signature
Types of methods in Java: predefined method, user-defined methods: instance method, static method
Calling of method
Java main method
Return type in Java

4.7 Constructor in Java


What is Constructor in Java?
Types of Constructors: Default and parameterized constructors
Java constructor overloading
Constructor chaining in java
Copy constructor in Java

4.8 Modifiers in Java


What is an Access modifier ad non-access modifier in Java?
Types of access modifiers like private, default, protected, and public
Types of non-access modifiers like abstract, final, native, static, Strictfp, synchronized modifier, transient, volatile.

4.9 Static Keyword


What is Static Keyword
Static variable
Static method
Static block, instance block
Static Nested Class in Java

4.10 Difference between static variable and instance variable, static method, and instance method, static block, and instance block
Final Keyword
Final keyword
Final variable
Final method
Final class

4.11 Inner Class in Java


What is Inner Class in Java?
Types of Inner class in Java

4.12 Super and this keyword


Super Keyword
Callingof superclass instance variable
Superclass constructor
Superclass method

5
4.13 Encapsulation
 Encapsulation in Java
 How to achieve encapsulation
 Data Hiding
 Tightly encapsulated class
 Getter and setter method in Java
 Naming convention of getter and setter method
4.14 Inheritance
 Inheritance in Java
 Is-A-Relationship
 Aggregation and Composition
 Types of Inheritance
4.15 Polymorphism
 Polymorphism in Java
 Types of Polymorphism
 Static and Dynamic Binding
 Method overloading]
 Method Overriding
4.16 Abstraction
 Abstraction in Java
 Abstract Class
 Abstract method
 Interface in Java
 Nested interface, rules, and example programs
 
Java Introduction:
 What is Java?
Java is a popular programming language, created in 1995.
It is owned by Oracle, and more than 3 billion devices run Java.
  It is used for:
 Mobile applications (specially Android apps)
 Desktop applications
 Web applications
 Web servers and application servers
 Games
 Database connection
 And much, much more!

 Why Use Java?


 Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
 It is one of the most popular programming languages in the world
 It has a large demand in the current job market
 It is easy to learn and simple to use
 It is open-source and free
 It is secure, fast and powerful
 It has a huge community support (tens of millions of developers)
 Java is an object oriented language which gives a clear structure to programs and allows code to be reused,
lowering development costs
 As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or vice versa

7
Java Quickstart

In Java, every application begins with a class name, and that class must match the filename. Let's create our first
Java file, called Main.java, which can be done in any text editor (like Notepad). The file should contain a "Hello
World" message, which is written with the following code:

public class Main {


public static void main(String[] args) {
System.out.println("Hello World");
}
}
 
Save the code in Notepad as "Main.java". Open Command Prompt (cmd.exe), navigate to the directory where
you saved your file, and type "javac Main.java":
 
This will compile your code. If there are no errors in the code, the command prompt will take you to the next
line. Now, type "java Main" to run the file.
 
The output should read: Hello World
 
Congratulations! You have written and executed your first Java program.

8
Java Syntax
In the previous chapter, we created a Java file called Main.java, and we used the following code to print "Hello World" to the screen:
 
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
 
Every line of code that runs in Java must be inside a class. In our example, we named the class Main.
A class should always start with an uppercase first letter.
 
Note: Java is case-sensitive: "MyClass" and "myclass" has different meaning.
 
The name of the java file must match the class name. When saving the file, save it using the class name and add ".java" to the end of the
filename.
 
The main Method
The main() method is required and you will see it in every Java program:
 
public static void main(String[] args)
 
Any code inside the main() method will be executed.
 
System.out.println()
Inside the main() method, we can use the println() method to print a line of text to the screen:
 
public static void main(String[] args) {
System.out.println("Hello World");
}
 
Note: The curly braces {} marks the beginning and the end of a block of code. System is a built-in Java class that contains useful members,
such as out,
which is short for output". The println() method, short for "print line", is used to print a value to the screen (or a file).

9
Java Output / Print

 Print Text
You learned from the previous chapter that you can use the println() method to output values or print text in Java:
System.out.println("Hello World!");
 
You can add as many println() methods as you want. Note that it will add a new line for each method:
 
Example
System.out.println("Hello World!");
System.out.println("I am learning Java.");
System.out.println("It is awesome!");
 
Double Quotes
When you are working with text, it must be wrapped inside double quotations marks "".
If you forget the double quotes, an error occurs:
 
Example
System.out.println("This sentence will work!");
System.out.println(This sentence will produce an error);
 
The Print() Method
There is also a print() method, which is similar to println().
The only difference is that it does not insert a new line at the end of the output:
 
Example
System.out.print("Hello World! ");
System.out.print("I will print on the same line.");
 
Note that we add an extra space (after "Hello World!" in the example above), for better readability.

10
Java Output Numbers
 
Print Numbers
You can also use the println() method to print numbers.
However, unlike text, we don't put numbers inside double quotes:
 
Example
System.out.println(3);
System.out.println(358);
System.out.println(50000);
 
You can also perform mathematical calculations inside the println() method:
 
Example
System.out.println(3 + 3);
 
Example
System.out.println(2 * 5);

11

You might also like