The final keyword in java is used to restrict the user. The java final keyword can be used in many context. We have following in Java: 1) final var…
Read more
Showing posts from March, 2020Show all
An access modifier restricts the access of a class,constructor, data member and method in another class.we have four access modifiers in java: 1. defau…
Read morePackages in java
BHOLU SINGH
0
Comments
A package as the name suggests is a pack(group) of classes, interfaces and other packages. In java we use packages to organize our classes and interface…
Read moreEncapsulation in Java with example
BHOLU SINGH
0
Comments
Encapsulation simply means binding object state(fields) and behaviour(methods) together. If you are creating class, you are doing encapsulation. What…
Read more