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:

Is this True or False. In Java an abstract class cannot be sub-classed.

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.

Exemplary flashcards for Oos2 at the Hochschule Esslingen on StudySmarter:

Which methods can access to private attributes of a class?

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 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:

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:

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:

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:

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:

Which of the following are legal declaration and definition of a method. Select all 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 these are interfaces in the collection framework. Select the two correct answers.

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

Is this True or False. In Java an abstract class cannot be sub-classed.

false

Oos2

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

8

Oos2

Which methods can access to private attributes of a class?

 Only methods those defined in the same class

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

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

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

true

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

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

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

a.    void method() {};

Oos2

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

a.    Set

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

Physik

Rechnernetze

Objektorientierte Systeme 1

Betriebssysteme

Betriebssysteme

Betriebswirtschaftslehre

SWT Privat

Statistik

OOP at

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

OOP at

Technische Hochschule Mittelhessen

OOP at

Hochschule Trier

OOP at

IUBH Internationale Hochschule

OOP at

IUBH Internationale Hochschule

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