Recent questions and answers in Java

458
views
1 answers
1 votes
What is the output of the following program?abstract class sum { public abstract int sumOfTwo(int n1, int n2); public abstract int sumOfThree(int n1, int n2, int n3); ... $\text{Error}$
643
views
2 answers
1 votes
In Java, for ensuring the persistence property, the class must implements:Serializable InterfaceUtilization InterfaceThreadable InterfaceRecognizable Interface
723
views
1 answers
1 votes
In Java, the Dynamic Array are known as :VectorsCycleRemoteKubernotos
443
views
1 answers
1 votes
Which of the following are two main types of overloading in Java?Overloading and linkingOverriding and linkingReusability and data-hidingOverloading and Overriding
504
views
1 answers
1 votes
In the given program:class Dialog1 { public static void main(String args[]) { Frame f1=new Frame("INDIA"); f1.setSize(300,300); f1.setVisible(true); ... are true?f1.setClear(true);f1.setVisible(true);f1.setlook(true);f1.setclean(true);
499
views
1 answers
1 votes
Which of the following Interface is not supported by $\text{JDBC}$ for connecting to Database in Java Programming language?Statement InterfacePrepared Statement InterfaceCallable Statement InterfaceDatabase Interface
499
views
1 answers
1 votes
The static keyword is used in public static void main() declaration in Java:To enable the $\text{JVM}$ to make call to the main(), as class has not been ... $\text{JVM}$ to make call to the main(), as class has not been finalized
451
views
1 answers
1 votes
Which of the following construct is not supported by Java Server Pages?$\text{JSP}$ Directives$\text{JSP}$ Scriptlets$\text{JSP}$ Actions$\text{JSP}$ Reaction
4.3k
views
3 answers
1 votes
What is the output of the following JAVA program?class simple { public static void main(String[ ] args) { simple obj = new simple(); obj.start(); } void start() { long [] P ... R) { R[1] = 7; return R; } } //end of class12:1515:1212:1215:15
2.2k
views
2 answers
1 votes
What is the output of the following JAVA program?public class Good { private int m; public Good (int m){this.m=m;} public Boolean equals (Good n) { ... False, FalseTrue, False, True, FalseTrue, True, False, TrueTrue, False, False, False
1.1k
views
1 answers
0 votes
Which of the following is a platform free language?JAVACAssemblyFortran
1.0k
views
1 answers
0 votes
780
views
1 answers
0 votes
Earlier name of Java programming language was:OAKDNetbeanEclipse
7.1k
views
1 answers
1 votes
Which of the following is/are true about packages in Java? Every class is part of some package.All classes in a file are part of the same package.If no package is specified, the ... $3$Only $1,2$ and $4$Only $4$Only $1$ and $3$
33.8k
views
1 answers
2 votes
Which of the following is false about abstract classes in Java?If we derive an abstract class and do not implement all the abstract methods, then ... abstract without any abstract method.A class can inherit from multiple abstract classes.
11.3k
views
1 answers
2 votes
Which of the following is true about interfaces in Java? An interface can contain following type of members. $\dots$ public, static, final fields(i.e., constants)$\dots$default and static ... $1,2$ and $4$2,3$ and $4$1,2,3$ and $4$
4.0k
views
3 answers
5 votes
In Java, after executing the following code what are the values of x, y and z?int x,y=10; z=12;x=y++ + z++;x=22, y=10, z=12x=24, y=10, z=12x=24, y=11, z=13x=22, y=11, z=13
2.7k
views
3 answers
2 votes
Java uses threads to enable the entire environment to be ______.SymmetricAsymmetricSynchronousAsynchronous
6.1k
views
2 answers
1 votes
Which methods are utilized to control the access to an object in multi-threaded programming ? Asynchronized methods Synchronized methods Serialized methodsNone of the above
1.9k
views
2 answers
1 votes
Match the following interfaces of Java. Servlet package $:$\begin{array}{clcl} & \textbf{List - I} && \textbf{List - II}\\ \text{a.}& \text{Servlet config} & \text{i} & \text{Enables ... -ii, b-iii, c-iv, d-i}$\text{a-iv, b-i, c-ii, d-iii}$
714
views
3 answers
1 votes
we know that pointer implementation is not possible in java and dynamic memory allocation is also not possible.Then how we can implement linked list in java?
11.1k
views
3 answers
2 votes
Which of the following statements is correct?Every class containing abstract method must not be declared abstractAbstract class cannot be ... operatorAbstract class cannot be initiatedAbstract class contains definition of implementations
2.7k
views
2 answers
1 votes
Method over-riding can be prevented by using final as a modifier at ______.The start of the class.The start of method declaration.The start of derived class.The start of the method declaration in the derived class.
7.2k
views
3 answers
3 votes
Which of these is a super class of all errors and exceptions in the Java language?Runtime ExceptionsThrowableCatchableNone of the above
5.1k
views
3 answers
2 votes
Consider the following Java code fragment:public class While { public void loop() { int x = 0; while(1) { System.out.println("x plus one is" +(x+1)); } } } ... nos. 1 & 6There is syntax error in line no. 8There is syntax error in line no. 6
2.5k
views
1 answers
1 votes
Which of the following is not a correct statement ?Every class containing abstract method must be declared abstract.Abstract class can directly be ... can be initiated.Abstract class does not contain any definition of implementation.
1.5k
views
1 answers
2 votes
Which method is called first by an applet program ? start( ) run( ) init( ) begin( )
2.8k
views
1 answers
1 votes
Converting a primitive type data into its corresponding wrapper class object instance is called BoxingWrapping InstantiationAutoboxing
2.2k
views
1 answers
1 votes
Which of the following methods from Object is final ( that it cannot be overriden ) ?(A) finalize method(B) clone method(C) hashCode method(D) getClass method
3.6k
views
1 answers
0 votes
What is the output of this program? class Conversion { public static void main(String args[]) { double a = 295.04; int b = 300; byte c = (byte) a; byte d = (byte) b; ... println(c + " " + d); } }a) 38 43b) 39 44c) 295 300d) 295.04 300
4.0k
views
2 answers
7 votes
Find the output of the following Java code line System.out.printIn(math.floor(-7.4))-7-8-7.4-7.0
Help get things started by asking a question.