A Computer Science blog for Learn Java. It contains well written and well explained computer science and programming articles and interview Questions. Tutorials,Free Online Tutorials,LearnJava provides tutorials and interview questions of technology like java ,core java. for beginners and professionals.
Tuesday, June 13, 2023
A Basic Java Program For Beginners 2023
https://cjavapoint.blogspot.com/?m=1
Sunday, July 24, 2022
What are Major Features of java New Update Varsion 2022 ?
Q: What are the major features of Java ?
Answer:
A list of most important features of Java language is given below
1. Simple
Java is easy to learn and its syntax is quite simple, clean and easy to understand. The confusing and ambiguous concepts of C++ are either left out in Java or they have been re-implemented in a cleaner way.
Eg : Pointers and Operator Overloading are not there in java but were an important part of C++.
2. Object Oriented
Java is an object-oriented programming language. Everything in Java is an object. Object-oriented means we organize our software as a combination of different types of objects that incorporates both data and behavior. Object-oriented programming (OOPs) is a methodology that simplifies software development and maintenance by providing some rules.
3. Robust
Robust simply means strong. Java is designed to eliminate certain types of programming errors. Java is strongly typed, which allows extensive compile-time error checking. It does not support memory pointers, which eliminates the possibility of overwriting memory and corrupting data. In addition, its automatic memory management (garbage collection) eliminates memory leaks and other problems associated with dynamic memory allocation/de-allocation.
4. Platform Independent
Unlike other programming languages such as C, C++ etc which are compiled into platform specific machines. Java is guaranteed to be write-once, run-anywhere language.On compilation Java program is compiled into bytecode. This bytecode is platform independent and can be run on any machine, plus this bytecode format also provide security. Any machine with Java Runtime Environment can run Java Programs.Java is platform Independent Language
5. Secure
When it comes to security, Java is always the first choice. With java secure features it enable us to develop virus free, temper free system. Java program always runs in Java runtime environment with almost null interaction with system OS, hence it is more secure. Java is designed to be secure in a networked environment too. The Java runtime environment uses a bytecode verification process to ensure that code loaded over the network does not violate Java security constraints.
6. Multi Threading
Java multithreading feature makes it possible to write program that can do many tasks simultaneously. Benefit of multithreading is that it utilizes same memory and other resources to execute multiple threads at the same time, like While typing, grammatical errors are checked along.
7. Architectural Neutral
Compiler generates bytecodes, which have nothing to do with a particular computer architecture, hence a Java program is easy to intrepret on any machine.
Monday, December 16, 2019
Aggregation in Java: Definition and Examples -Learn Java
Aggregation in Java: Definition and Examples -Learn Java
Example:
Example:
Saturday, December 14, 2019
Composition in Java Example - Learn Java
Composition in Java Example - Learn Java
Example:
best way to learn java. this is best java tutorial.in this tutorial
all the programs start with hello java,hello world.Enterprise applications
programming language
HAS-A relationship in Java - Learn java
HAS-A relationship in Java - Learn java
Example:-
class Engine{
// engine functionality
}
class Car
{
Engine e=new Engine();
//------------------------------;
//------------------------------;
//------------------------------;
}
NOTE:-
class car has-a engine reference.The main dis-advantage of has-a relationship increases dependency between the
components and creates maintains problems.
Learn Java online free and learn java programming this is the
best way to learn java. this is best java tutorial.in this tutorial
all the programs start with hello java,hello world.Enterprise applications
programming language
Thursday, October 3, 2019
What is “tightly encapsulation” in Java? - Learn Java
What is “tightly encapsulation” in Java? - Learn Java
Encapsulation In Java With Realtime Example
A class is said to be tightly encapsulated.If and only if each and every variable of class declared as private.
And there is no need to be worry about whether class contains corresponding
getter and setter methods or not or whether these methods are declare as public
or not.
Encapsulation In Java With Realtime Example:
Example:1public class Account
{
private double balance;
public double getBalance()
{
return balance;
}
}
Which of the following classes are tightly encapsulated
public class A{
private int x=11;(Valid)
}
class B extends A
{
int y=20;(Invalid)
}
class C extends A
{
private int z=40;(Valid)
}
Note : If the parent class is not tightly encapsulated then
child class will not be tightly encapsulated.
learn java online free and learn java programming this is the
best way to learn java. this is best java tutorial.in this tutorial
all the programs start with hello java,hello world.Enterprise applications
programming language
Saturday, September 28, 2019
Encapsulation in Java - Learn Java
Encapsulation Real Time Example
Binding a data and corresponding method in a single unit is called encapsulation.
If any class follows data hiding and abstraction such type of class is called encapsulated class.
ENCAPSULATION= ABSTRACTION+DATA HIDING
The Main Advantage of Encapsulation.
- we can achieve security.
The Main Disadvantage of Encapsulation.
1.it is increases length of the code and slow down execution.
Every Data member should be declared as private and for every member we have to maintain
getter and setter method.
learn java online free and learn java programming this is the
best way to learn java. this is best java tutorial.in this tutorial
all the programs start with hello java,hello world.Enterprise applications
programming language
Abstraction in Java - Learn Java
Abstraction in Java - Learn Java
Abstraction in oops with Example
- Hide internal implementation and just show the set of service
- We can achieve security as we are not highlighting our internal implementation.
- it improves maintainability of the application.
- it improves modularity of the application.
- it improves easyness to use our system.
learn java online free and learn java programming this is the
best way to learn java. this is best java tutorial.in this tutorial
all the programs start with hello java,hello world.Enterprise applications
programming language
Friday, September 27, 2019
What is data hiding in a program? - Learn Java
What is data hiding in a program? - Learn Java
- Over internal data should not go out directly that is outside person can't access our internal data directly.
- By using private modifier we can implement data hiding .
Data Hiding In Java Example Program.
EXAMPLEclass Account
{
private double balance;
---------------------------;
----------------------------;
}
After providing proper username and password only, we can access our Account
information.
Main advantage of data hiding is security.
learn java online free and learn java programming this is the
best way to learn java. this is best java tutorial.in this tutorial
all the programs start with hello java,hello world.Enterprise applications
programming language
Wednesday, September 18, 2019
Object Oriented Programming(OOPs)Concept in Java-Learn Java
Object Oriented Programming(OOPs)Concept in Java-Learn Java
learn java online free and learn java programming this is the
best way to learn java. this is best java tutorial.in this tutorial
all the programs start with hello java,hello world.Enterprise applications
programming language
- Abstraction.
- Data Hiding.
- Encapsulation.
- Tightly encapsulation class.
- IS-A Relationship(Inheritance).
- HAS-A Relationship.
- Method Singnature
- Polymorphism
- Static Control Flow.
- Singleton Class.
- Fectory Method.
Java multithreading Tutorial with Real-Life-Example(2025)
Java Multithreading Tutorial with Real-Life Examples (2025) Meta Description: Learn Java Multithreading with real-world examples. Und...
-
What is a method signature in Java? -Learn Java online java learn interview questions.full core java interview questions on java learn ....
-
Java Multithreading Tutorial with Real-Life Examples (2025) Meta Description: Learn Java Multithreading with real-world examples. Und...
-
Interview Questions and Answers for Xpanxion 2020 Letest Questions & Ans All The question of Xpanxion Round 1st Clear. All type of co...

