Learn Core JAVA
4.3K subscribers
76 photos
6 files
44 links
Download Telegram
Channel created
1. JAVA INTRODUCTION

Java is general purpose programming language.
General purpose means the language is not designed for 1 purpose, it is designed for multiple purpose.
Java language is uses in Hardware industry as well as in Software industry.
In Hardware industry, the language is used to execute or to run hardware appliances.
Ex: washing machine, parking meter, refregerator, etc.
In Software industry, the language is used to design and to develop applications.
Ex: Android applications
Java is very popular in the Software industry because the language is very simple to understand, secure, portable, dynamic, etc.
Java programming language is also known as "Write Once, Run Anywhere."
It is also known as platform independent programming language.
It is also known as Object-oriented programming language.
It is also known as interpreted(line by line execution) programming language.
Java is very popular then C language, because C programming language utilizes Operating System resources for compilation and execution of program whereas Java never utilizes OS resources for compilation and execution of a program.
In interview, interviewer can ask you a question "what do you know about java and why java?" You need to tell them this points
COURSE CONTENT

SECTION-1

1.INTRODUCTION
2.HISTORY
3.JAVA S/W INSTALLATION
4.SIMPLE JAVA PROGRAMS
5.VARIABLES
6.DATA TYPES
7.CONTROL STATEMENTS
8.LOOPS
9.METHODS
10.DATA MEMBERS INITIALIZATION


SECTION-2

11. BLOCKS AND CONSTRUCTORS
12. CLASS AND OBJECT
13. SUN ARCHITECTURE
14. INTRODUCTION TO OOPS
15. INHERITANCE
16. POLYMORPHISM
17. ACCESS SPECIFIER
18. ENCAPSULATION
19. ABSTRACT AND CONCRETE
20. GENERALIZATION
21. CASTING
22. INTERFACE
23. ABSTRACT CLASS
24. SINGLTON CLASS


SECTION-3

25. JAVA LIBRARIES
26. STRING
27. ARRAY
28. EXCEPTION HANDLING
29. THREAD
30. COLLECTION FRAMEWORK
31. FILE HANDLING
32. WRAPPER CLASS
Share this link with your contacts

Learn Core JAVA
https://t.me/coreJavaBatch
Where java can be used?

JAVA program is used in, Mobile applications, Stand alone applications, dynamic applications and BigData(Hadoop) technology.


1. Standalone Applications:-
An application which never utilizes external resources for execution, it is known as standalone applications.
Ex: Calculators, music players, parking meters, etc

2. Dynamic Applications:-
An application which utilizes external resources for execution, it is known as dynamic application.
External resources are like server facility, internet connectivity and database utilization.
Dynamic applications are also also known as server side app or web applications.
Ex: Amazon, Flipkart(e-commerce) etc.
JAVA Platforms:
Java programming language is classified into three different platforms. They are,

1. J2SE:- JAVA 2 Standard Edition
standalone app,
security high because of OOPS concept

2. J2EE:- JAVA 2 Enterprise Edition
dynamic app,
web app,
server side app

3. J2ME:- JAVA 2 Micro Edition
*First Java Program

class Program1{
public static void main(String [] args)
{
System.out.println("Hello Java");
}
}
>output:
Hello Java
●Compilation:

javac FileName.java
javac Program1.java
(After compiling the java program .class will be generate)

●Execution:

java ClassName
java Program1

》output: Hello Java
☆JAVA class syntax:-

class ClassName
{ //class declaration

//data members~variables
// member functions~ methods
// blocks
//constructor

public static void main(String [] args)
{
//executable statement
}
}
• Class name should not start with numeric or special characters.

• Class name should start with alphabet+numeric
Ex: Demo1
1_Demo (which is not recommended)
☆Keywords:
Keywords are the set of predeclared words, which have its own functionality.
There are 52 keywords in present in Java.
Java is case sensitive programming language, hence all the keywords need to be declared in lower case.
☆Identifiers:
In java identifiers are used to recognise a specific area or information.
Ex:- className, method name and variable name
Pls share this channel link to ur frnds
☆Class body:-

After class declaration, open in curly braces and closed curly braces represent class body.
In a class body, programmer can be declare data members, member functions, blocks and constructor.
If programmer want to declare any executable statements then those statements need to be declared inside class body.
Declaring executable statements outside class body throws error.
(It is because of Encapsulation rule).
☆Main method:-

Main method places very important role in execution of java program because of main method is the entry point of Java program.
Without main method compilation takes place but execution don't.
Ex:-
class Demo
{
public static void main(String [] args)
{
System.out.println("Hello");
}
}


javac Demo.java
java Demo
O/p:- Hello
☆print:-
Prints the output and the cursor remains in the same line.


☆println:-
Prints the output and the cursor jumps to the next line.
Ex:-
Ex:-
class Demo1
{
public static void main(String [] args)
{
System.out.print("Hello all");
System.out.println("Hello");
}
}


javac Demo1.java
java Demo
O/p:- Hello allHello
_ (cursor)