Association is the OOPS concept to define the relationship between objects. The association defines the multiplicity between objects. For example Teacher and Student objects. There is a one-to-many relationship between a teacher and students. Similarly, a student can have a one-to-many relationship...
Object:Any entity that has state and behavior is known as an object. For example, a chair, pen, table, keyboard, bike, etc. An Object can be defined as an instance of a class. An object contains an address and takes up some space in memory. Objects can communicate without knowing the...
When an object ‘has a’ another object, then, you have got an aggregation in between them. This is also called a ‘has a’ relationship. For an OOPs example; an employee can be only in one department. Even if the department is deleted, the employee exists. This is called ‘has a’...
One of the most fundamental concept of OOPs isAbstraction. Abstraction is a process where you show only “relevant” data and “hide” unnecessary details of an object from the user. For example, when you login to your Amazon account online, you enter your user_id and password and press lo...
For Example: If it contains ‘C:WindowsSystem32′ then change your path by ‘C:WindowsSystem32; C:Program Filesjavabin’. ClickOKbutton On Linux, UNIX, Solaris Use the following command: export PATH=$PATH:/home/jdk1.6.01/bin/ Where JDK is installed in the home directory under Root (ho...
For more information about the biased locking technique, see the example in Java Tuning White Paper at http://www.oracle.com/technetwork/java/tuning-139912.html#section4.2.5 By default, this option is enabled. -XX:-UseCompressedOops Disables the use of compressed pointers. By default, this ...
Example: Copy export JDK_JAVA_OPTIONS='-g @file1 -Dprop=value @file2 -Dws.prop="white spaces"' $ java -Xint @file3 is equivalent to the command line: Copy java -g @file1 -Dprop=value @file2 -Dws.prop="white spaces" -Xint @file3 Overview of Java Options The java command sup...
Java Interview Questions on Core OOPS concepts These interview questions on core Object-Oriented Programming concepts are commonly asked in Java developer interviews. Practice them toace your tech interview. Explain Data Abstraction with an example. ...
For example, if we are working on an HR application then it consists of entities/actors e.g. employee, manager, department, payslips, vacation, goals, time tracking, etc. To model these entities in computer programs, we can create classes with similar data attributes and behavior as in real...
Java String isEmpty example Java String length example Java String join example 11.2: String Programs Java program to reverse a String Find all substrings of a String in java Find first non repeated character in a String How to split a String in java Java Program to find duplicate Characters...