SSA Global Java Questions: EncapsulationTab.amp
Examrace Placement Series prepares you for the toughest placement exams to top companies.
Encapsulation is the mechanism that binds together code and the data it manipulates and keeps both safe from outside interference and misuse.
Inheritance is the process by which one object acquires the properties of another object.
Polymorphism is a feature that allows one interface to be used for a general class of actions. The specific action is determined by the exact nature of actions.
Two or more statements which is allowed to be grouped into blocks of code is otherwise called as Code Blocks. This is done by enclosing the statements between opening and closing curly braces.
Floating-point numbers which is also known as real numbers, are used when evaluating expressions that require fractional precision.
Unicode defines a fully international character set that can represent all of the characters found in all human languages. It is a unification of dozens of character sets, such as Latin, Greek, Arabic and many more.
Java has a simple type called boolean, for logical values. It can have only on of two possible values, true or false.
A cast is simply an explicit type conversion. To create a conversion between two incompatible types, you must use a cast.
An array is a group of like-typed variables that are referred to by a common name. Arrays offer a convenient means of grouping related information. Arrays of any type can be created and may have one or more dimension.
The relational operators determine the relationship that one operand has to the other. They determine the equality and ordering.
Short-Circuit Logical Operators: The secondary versions of the Boolean AND and OR operators are known as short-circuit logical operators. It is represented by | and &&
Switch: The switch statement is Java's multiway branch statement. It provides an easy way to dispatch execution to different parts of your code based on the value of an experession.
Jump Statements: Jump statements are the statements which transfer control to another part of your program. Java Supports three jump statements: Break, continue, and return.
The data, or variable, defined within a class are called instance variable.