---
type: archive
area: archive
status: archived
date: 2026-05-03
created: 2026-05-03
updated: 1980-01-01
tags:
  - archive
---
### Diffrence Betwen Java versions
![[img-20240801-130104-4cd03648.png]]
- Java was developed by Sun micro systems.
### How Java works?
- Write once -> Runs any where !!!!!
Java code is written in .java files after they also compiled to .class files who are executed with JVM in any platform

- An Object is specific example of a class.
java.lang is implicitly imported on any created class.
- *no acces modifier* means that variables will be visible only for classes with the same  package.
 - Javac is the compiler we can use it with command line to manually compile java
 - java - cp <path_to _classes>  < fully_qualified_class_name> args_separated_by_spaces> 
 - If we take for example byte type:
Range : [-128,127]
for example 
	- 126 + 1 = 127
	- 127 + 1 = - 128
	- -128 + 1 = -127
- Exclusive operator:
^ :  implies that for this condition ( a > b ^ b == 2 ) just 1 part that should be true  (a > b ) or  ( b == 2 ) not both.
### Short - Circuits:
![[img-20240801-230033-7de4250f.png]]
 
Ternary Operator:
<variable> = (<boolean expression>) ? <value_true> : <value_false>
we can use this small if check to verify some condition
### Yield:
- is special statement used to populate a value in switch expression when using switch to instantiate a variable from a switch it used in the place of break. 
- when using ->  we don't need to use break or yield to populate variable value
