gs gs111 Class Components (Using Java) - Memory Allocation - Quiz No.1
gs gs111 OOP Object Oriented Programming Java Quiz
This quiz belongs to book/course code gs gs111 OOP Object Oriented Programming Java of gs organization. We have 178 quizzes available related to the book/course OOP Object Oriented Programming Java. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Class Components (Using Java). NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
public class Malloc { Integer h = new Integer(0); Integer b = new Integer(0); void Area() { System.out.println(h*b); } public static void main(String[] args) { Malloc a = new Malloc(); a.h=10; a.b=20; a.Area(); } }
public class Memory { public static void main(String[] args) { Integer i = new Integer(10); String s = new String("NVAEducation"); System.out.println(i.getClass().getSuperclass()); System.out.println(s.getClass().getSuperclass()); } }
class java.lang.Number class java.lang.Object
class java.io.Number class java.io.Object
class java.util.Number class java.util.Object
import java.util.*; public class list { public static void main(String args[]) { LinkedList l = new LinkedList(); l.add(20); l.add(30); l.add(50); l.add(70); l.add(90); Collections.shuffle(l); System.out.println(l); } }
import java.util.*; public class lists { public static void main(String args[]) { LinkedList l = new LinkedList(); l.add(28); l.add(41); l.add(4); l.add(3); l.add(10); l.remove(4); System.out.println(l); } }