Tag: programming languages
Questions Related to programming languages
Which is simplest and correct code snippet needs to be put in the main function to replace the value object of the HashMap for the key “orange”?
Which of the given options code is correct and will not waste memory. Note :- Defination of the Class Item is class Item { public int code; public String name; public Item(String name) { this.name = name; } } itemList is ArrayList containing 50 objects of Class Items.
Examine this package body: CREATE OR REPLACE PACKAGE BODY forward_pack IS V_sum NUMBER; - 44 - PROCEDURE calc_ord(. . . ); PROCEDURE generate_summary(. . . ) IS BEGIN Calc_ord(. . . ); . . . END calc_ord; END forward_pack; / Which construct has a forward declaration?
Which of the following is not a java keyword?
what is the value of x and y after running this code? class a { public static void main(String args[]) { int x=1; int y=x++; } }
What is the output:class a { public static void main (String args[]) { int x; int y=10; if (y>0) { x = 10; } System.out.println(x); } }