Oos2 at Hochschule Esslingen

Flashcards and summaries for Oos2 at the Hochschule Esslingen

Arrow Arrow

It’s completely free

studysmarter schule studium
d

4.5 /5

studysmarter schule studium
d

4.8 /5

studysmarter schule studium
d

4.5 /5

studysmarter schule studium
d

4.8 /5

Study with flashcards and summaries for the course Oos2 at the Hochschule Esslingen

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

Which methods can access to private attributes of a class?

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

Which of these are not legal identifiers. Select the four correct answers.

a.    1alpha

b.    _abcd

c.    xy+abc

d.    transient

e.    account-num

f.    very_long_name

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

Is the following statement true or false. The constructor of a class must not have a return type.

This was only a preview of our StudySmarter flashcards.
Flascard Icon Flascard Icon

Millions of flashcards created by students

Flascard Icon Flascard Icon

Create your own flashcards as quick as possible

Flascard Icon Flascard Icon

Learning-Assistant with spaced repetition algorithm

Sign up for free!

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

What is an aggregate object?

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

Which of the following are keywords in Java. Select the two correct answers.

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

What gets printed when the following program is compiled and run? Select the one correct answer.

class test {

    public static void main(String args[]) {

        int i;

        do {

            i++;

        }

        while(i < 0);

        System.out.println(i);

    }

}

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

Which of these are interfaces in the collection framework. Select the two correct answers.

This was only a preview of our StudySmarter flashcards.
Flascard Icon Flascard Icon

Millions of flashcards created by students

Flascard Icon Flascard Icon

Create your own flashcards as quick as possible

Flascard Icon Flascard Icon

Learning-Assistant with spaced repetition algorithm

Sign up for free!

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

Which of the following are legal declaration and definition of a method. Select all correct answers. 

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

What happens when the following code is compiled and run. 


for(int i = 1; i < 3; i++)

  for(int j = 3; j >= 1; j--)

     assert i!=j : i; 

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

A top level class may have only the following access modifier.

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

 What is the number of bytes used by Java primitive long. Select the one correct answer.

This was only a preview of our StudySmarter flashcards.
Flascard Icon Flascard Icon

Millions of flashcards created by students

Flascard Icon Flascard Icon

Create your own flashcards as quick as possible

Flascard Icon Flascard Icon

Learning-Assistant with spaced repetition algorithm

Sign up for free!

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

Assume that File is an abstract class and has toFile() method. ImageFile and BinaryFile are concrete classes of the abstract class File.

Also, assume that the method toFile() is implemented in both Binary File and Image File. A File references an ImageFile object in memory and the toFile method is called, which implementation method will be called?

Your peers in the course Oos2 at the Hochschule Esslingen create and share summaries, flashcards, study plans and other learning materials with the intelligent StudySmarter learning app.

Get started now!

Flashcard Flashcard

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

Oos2

Which methods can access to private attributes of a class?

 Only methods those defined in the same class

Oos2

Which of these are not legal identifiers. Select the four correct answers.

a.    1alpha

b.    _abcd

c.    xy+abc

d.    transient

e.    account-num

f.    very_long_name

 a, c, d, e

Oos2

Is the following statement true or false. The constructor of a class must not have a return type.

true

Oos2

What is an aggregate object?

 An instance which has other objects

Oos2

Which of the following are keywords in Java. Select the two correct answers.

d.    synchronized

Oos2

What gets printed when the following program is compiled and run? Select the one correct answer.

class test {

    public static void main(String args[]) {

        int i;

        do {

            i++;

        }

        while(i < 0);

        System.out.println(i);

    }

}

Answer : The program does not compile as i is not initialized.

Description :Local variables are not initialized by default. They must be initialized before they are used.

Oos2

Which of these are interfaces in the collection framework. Select the two correct answers.

a.    Set

Oos2

Which of the following are legal declaration and definition of a method. Select all correct answers. 

a.    void method() {};

Oos2

What happens when the following code is compiled and run. 


for(int i = 1; i < 3; i++)

  for(int j = 3; j >= 1; j--)

     assert i!=j : i; 

Answer : The number 1 gets printed with AssertionError

Description :When i and j are both 1, assert condition is false, and AssertionError gets generated.

Oos2

A top level class may have only the following access modifier.

public

Oos2

 What is the number of bytes used by Java primitive long. Select the one correct answer.

8

Oos2

Assume that File is an abstract class and has toFile() method. ImageFile and BinaryFile are concrete classes of the abstract class File.

Also, assume that the method toFile() is implemented in both Binary File and Image File. A File references an ImageFile object in memory and the toFile method is called, which implementation method will be called?

 Image File

Sign up for free to see all flashcards and summaries for Oos2 at the Hochschule Esslingen

Singup Image Singup Image
Wave

Other courses from your degree program

For your degree program Oos2 at the Hochschule Esslingen there are already many courses on StudySmarter, waiting for you to join them. Get access to flashcards, summaries, and much more.

Back to Hochschule Esslingen overview page

Betriebssysteme

Digitale Medien

Mensch-Computer-Interaktion

Software engineering

Betriebssysteme

Betriebssysteme - Die Kärtle zur Zusammenfassung

EmCiAi

Mensch-Computer-Interaktion 1

Betriebssysteme

Betriebswirtschaftslehre

Objektorientierte Systeme 1

Statistik

Physik

Datenbanken

SWT Privat

Mensch Computer Interaktion 1

Mensch-Computer-Interaktion 2

Softwarearchitektur

OOP at

Hochschule Pforzheim

OOP at

Helmut-Schmidt-Universität/ Universität der Bundeswehr

OOP1 at

Hochschule Niederrhein

OOP at

Universität Potsdam

OOP at

NORDAKADEMIE Hochschule der Wirtschaft

Similar courses from other universities

Check out courses similar to Oos2 at other universities

Back to Hochschule Esslingen overview page

What is StudySmarter?

What is StudySmarter?

StudySmarter is an intelligent learning tool for students. With StudySmarter you can easily and efficiently create flashcards, summaries, mind maps, study plans and more. Create your own flashcards e.g. for Oos2 at the Hochschule Esslingen or access thousands of learning materials created by your fellow students. Whether at your own university or at other universities. Hundreds of thousands of students use StudySmarter to efficiently prepare for their exams. Available on the Web, Android & iOS. It’s completely free.

Awards

Best EdTech Startup in Europe

Awards
Awards

EUROPEAN YOUTH AWARD IN SMART LEARNING

Awards
Awards

BEST EDTECH STARTUP IN GERMANY

Awards
Awards

Best EdTech Startup in Europe

Awards
Awards

EUROPEAN YOUTH AWARD IN SMART LEARNING

Awards
Awards

BEST EDTECH STARTUP IN GERMANY

Awards
X

StudySmarter - The study app for students

StudySmarter

4.5 Stars 1100 Rating
Start now!
X

Good grades at university? No problem with StudySmarter!

89% of StudySmarter users achieve better grades at university.

50 Mio Flashcards & Summaries
Create your own content with Smart Tools
Individual Learning-Plan

Learn with over 1 million users on StudySmarter.

Already registered? Just go to Login