Skip to main content

Posts

Showing posts with the label java

Data hiding in java

In java it is achieved by using a keyword 'private' keyword and the process is called data hiding. It is used as security such that no internal data will be accessed without authentication. An unauthorized end user will not get access to internal data. v     Access Specifier Public Private Protected Default     Access From Public default private In the Class              ...

Java Basics

What is Java? Java is a high-level, general-purpose, object-oriented, and secure programming language developed by James Gosling at Sun Microsystems, Inc. in 1991. Features of Java Simple:  Java is a simple language because its syntax is simple, clean, and easy to understand. Complex and ambiguous concepts of C++ are either eliminated or re-implemented in Java. For example, pointer and operator overloading are not used in Java. Object-Oriented:  In Java, everything is in the form of the object. It means it has some data and behavior. A program must have at least one class and object. Robust:  Java makes an effort to check error at run time and compile time. It uses a strong memory management system called garbage collector. Exception handling and garbage collection features make it strong. Secure:  Java is a secure programming language because it has no explicit pointer and programs runs in the virtual machine. Java contains a security manager that defines the access...