❤1
public class Person {
private string name;
private int age;
private int weight;
private int height;
public static Person (string name, int age) {
this.name = name;
this age = age;
weight = 0;
height = 0;
/// rest of code
}
}
is this sequence correct?
private string name;
private int age;
private int weight;
private int height;
public static Person (string name, int age) {
this.name = name;
this age = age;
weight = 0;
height = 0;
/// rest of code
}
}
is this sequence correct?
❤3
how many reference variables and objects are created by the following code?
Student studentName, studentId; studentName = new Student(); Student stud_class = new Student();
Student studentName, studentId; studentName = new Student(); Student stud_class = new Student();
Anonymous Quiz
42%
Three reference variables and two objects
36%
Two reference variables and two objects
17%
One reference variable and two objects
6%
Three reference variables and three objects
❤6
Which provides runtime environment for java byte code to be executed?
Final Results
37%
JDK
50%
JVM
11%
JRE
2%
JAVAC
❤1
The output?
public class Test {
public static void main(String[] args) {
int count = 1;
while (count <= 15) {
System.out.println(count % 2 == 1 ? "***" : "+++++");
++count;
}
}
public class Test {
public static void main(String[] args) {
int count = 1;
while (count <= 15) {
System.out.println(count % 2 == 1 ? "***" : "+++++");
++count;
}
}
❤3
What is the automatic type conversion that java doesn't allow:
Anonymous Quiz
30%
Byte>Long
33%
Char>Float
33%
Float>Long
4%
int>Double
How many objects will be created in the following?
String a = new String(“Interviewbit”);
String b = new String(“Interviewbit”);
Strinc c = “Interviewbit”;
String d = “Interviewbit”;
String a = new String(“Interviewbit”);
String b = new String(“Interviewbit”);
Strinc c = “Interviewbit”;
String d = “Interviewbit”;
👍1
https://youtube.com/playlist?list=PLwjK_iyK4LLBj2yTYPYKFKdF6kIg0ccP2
كورس علي الباب الرابع و الخامس diode and diode application في الإلكترونية
وفي علي ما اعتقد حل مسائل كذلك
#EC310
كورس علي الباب الرابع و الخامس diode and diode application في الإلكترونية
وفي علي ما اعتقد حل مسائل كذلك
#EC310
❤6👍1
❤2
❤2