View allAll Photos Tagged java

The Java leg of our trip. Started from Jakarta to Yogyakarta by train, to Mt. Bromo and from there to Surabaya

 

Baluran Adventure: Berpetualang di padang savana dan hutan mangrove Taman Nasional Baluran, dan snorkeling di Pantai Bama bareng tim BTrav Tour.

My first attempt at stereophotography. The subject is a java fern, a common aquarium plant.

Java Sparrows feed on rice and grain.

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

Encapsulation in Java is another OOPs concept which represents data hiding. This means that the variables are encapsulated within the class and other classes cannot access them directly. We can access them only through the public class methods. In this way, we can hide important data and restrict their modification.

How to achieve encapsulation

We can achieve encapsulation in java in the below ways.

 

- Declare variables as private. Please refer to access modifiers to understand more about private modifier. We cannot access private variables directly from other classes.

- Implement getter and setter methods. We can use these to read and write the values.

  

Advantages of Java Encapsulation

 

- Provides security by not allowing outside class to modify the private fields.

- We can have either read-only or write-only methods also hence providing restrictions to other classes to access them. This means, if a class has only a get method, we can only read the variables. Similarly, we can have only a set method to only set the variable.

- Provides flexibility and reusability through the getter and setter methods.

- Implementation details are not visible to other classes.

- Easy for unit testing

 

Now let's understand the encapsulation concept in java using an example.

Example of Java Encapsulation

In the below example, we have 2 private variables pname, dept in the Professor class. Since the variables are private we cannot access them outside the class.

 

www.tutorialcup.com/java/encapsulation-in-java.htm

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

The Java leg of our trip. Started from Jakarta to Yogyakarta by train, to Mt. Bromo and from there to Surabaya

 

The Java leg of our trip. Started from Jakarta to Yogyakarta by train, to Mt. Bromo and from there to Surabaya

 

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

The Java leg of our trip. Started from Jakarta to Yogyakarta by train, to Mt. Bromo and from there to Surabaya

 

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

Java Jazz 2014 - Day 2

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

Breadii bakery and Beibiku baby store.

Malang city. East Java, Indonesia.

The Java leg of our trip. Started from Jakarta to Yogyakarta by train, to Mt. Bromo and from there to Surabaya

 

Electronic billboard java error

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

Scan of a picture taken on film with a Nikon FE.

Photo: Parks Australia

 

Java sparrow - Lonchura oryzivora. This is an introduced species.

 

For more information, visit our website.

The Java leg of our trip. Started from Jakarta to Yogyakarta by train, to Mt. Bromo and from there to Surabaya

 

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

Szukamy programistów! Nie każ nam czekać:) Zgłoś się!

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

Actually I call it the Java Jacket. Available for sale at detroitknitter.etsy.com

 

It rolls up and has a clip so you can put it on your keychain.

 

Coming soon... the ULTIMATE JAVA JACKET

Java

Indonesia

Jakarta

Jogjakarta

Borbudur

Prambanan

Dieng Plateau

Mount Bromo

July 2010

The Java leg of our trip. Started from Jakarta to Yogyakarta by train, to Mt. Bromo and from there to Surabaya

 

Painted from memories of my time in South East Asia. No brushes were harmed in the creation of this work I used only tissues, fingers and Knife. Oils 16x12 stretched canvas

1 2 ••• 34 35 37 39 40 ••• 79 80