Object Oriented language v/s Object based programming language.

Priya Pallavi
Published on 23-Apr-2018 07:17:07
Object-based programming languages do not implement all features of OOPS whereas Object Oriented languages provide all the OOPS features.JavaScript and VBScript are Object-based languages.Java and C#.NET are Object Oriented languages.

Object Oriented language v/s Procedure oriented programming language.

Nikitha N
Published on 23-Apr-2018 10:51:46
High Maintainability − OOPS keeps code maintainable as project size grows to a large size where are in a procedure-oriented programming language, it is quite difficult to manage and maintain the large code base.Data Encapsulation − OOPS encapsulate data and maintain data hiding whereas, in procedural languages, global data is ... Read More

OOPS concepts in Java.

Arushi
Published on 23-Apr-2018 11:12:26
The Object Oriented programming paradigm plays an important role in human-computer interface. It has different components that take real world objects and perform actions on them, making live interactions between man and the machine. Following are the components of OOPS −This paradigm describes a real-life system where interactions are among ... Read More

Java program to transpose a matrix.

Nikitha N
Published on 22-Apr-2018 21:07:36
Following is the required program.ExampleLive Demopublic class Tester {    public static void main(String args[]) {       int a[][] = { { 1, 3, 4 }, { 2, 4, 3 }, { 3, 4, 5 } };       int t[][] = new int[3][3];       ... Read More

Java program to print odd and even number from a Java array.

Syed Javed
Published on 22-Apr-2018 21:11:54
Following is the required program.ExampleLive Demopublic class Tester {    public static void main(String args[]) {       int a[] = { 11, 22, 55, 66, 31, 24 };       System.out.println("Odd Numbers:");       for (int i = 0; i < a.length; i++) {     ... Read More

Java program to multiply two matrices.

Nikitha N
Published on 22-Apr-2018 21:17:22
Following is the required program.ExampleLive Demopublic class Tester {    public static void main(String args[]) {       // matrix 1       int a[][] = { { 1, 3, 4 }, { 2, 4, 3 }, { 3, 4, 5 } };       // matrix ... Read More

Java program to subtract two matrices.

Syed Javed
Published on 22-Apr-2018 21:20:51
Following is the required program.ExampleLive Demopublic class Tester {    public static void main(String args[]) {       //matrix 1       int a[][] = { { 1, 3, 4 }, { 2, 4, 3 }, { 3, 4, 5 } };       //matrix 2   ... Read More

Remove duplicate element in a Java array.

Nikitha N
Published on 22-Apr-2018 21:24:52
Following is the required program.ExampleLive Demoimport java.util.Arrays; public class Tester {    public static int[] removeDuplicateElements(int arr[]){       int n = arr.length;       int[] temp = new int[n];       int j = 0;       for (int i=0; i<n-1; i++){       ... Read More

Java program to add two matrices.

Syed Javed
Published on 22-Apr-2018 21:28:19
Following is the required program.ExampleLive Demopublic class Tester {    public static void main(String args[]) {       //matrix 1       int a[][] = { { 1, 3, 4 }, { 2, 4, 3 }, { 3, 4, 5 } };       //matrix 2   ... Read More

Find the smallest number in a Java array.

Paul Richard
Published on 23-Apr-2018 09:20:32
ExampleFollowing is the required program.Live Demopublic class Tester {    public static int getSmallest(int[] a) {       int temp;       //sort the array       for (int i = 0; i < a.length; i++) {          for (int j = i + ... Read More
Advertisements