This document was uploaded by user and they confirmed that they have the permission to share
it. If you are author or own the copyright of this book, please report to us by using this DMCA
report form. Report DMCA
Overview
Download & View Drag &drop Ans-scjp as PDF for free.
Q 105,316 ========== package com.bar; import com.foo.bar.blatz.*; import com.foo.bar.*; Q 21,124 ======== interface Reloadable { public void reload90; } class Edot { public void Edit(){} } interface Displayable extends Reloadable { public void display(); } Q113.244 ============ import java.util.*; public class NumberNames { private HashMap<String,Integer> map= new HashMap<String,Integer>(); public void put(String name, int value) { map.put(name,value); } public Set<String> getNames() { for(String aaa:map.keySet()) System.out.println(map.get(aaa)); return map.keySet(); }
public static void main(String[] ars) { NumberNames nn=new NumberNames(); nn.put("10",4); nn.put("11",14); nn.put("12",24); nn.put("13",34); nn.put("14",44); nn.put("15",54); nn.put("6",64); System.out.println(nn.getNames()); } } Q 106 ========= import java.util.*; class A{} class B extends A{} public class Test { public static void main(String[] args) { List listA=new LinkedList(); List listB=new LinkedList(); List