Blog

Palindrome Number | Java Solved

Palindrome Number | Java Solved Palindrome Number /* This program shows how to check for in the given list of numbers whether each number is palindrome or not */ public class JavaPalindromeNumberExample { public static void main(String[] args) { //array of numbers to be checked …

Fibonacci Series | Java Solved

Fibonacci Series | Java Solved /* Fibonacci Series Java Example This Fibonacci Series Java Example shows how to create and print Fibonacci Series using Java. */ public class JavaFibonacciSeriesExample { public static void main(String[] args) { //number of elements to generate in a series int …

Object Oriented Programming Questions & Answers | OOP | MCQ

Object Oriented Programming | OOP | MCQ Q 1. What is the output of the following StringBuffer sb1 = new StringBuffer(“Amit”); StringBuffer sb2= new StringBuffer(“Amit”); String ss1 = “Amit”; System.out.println(sb1==sb2); System.out.println(sb1.equals(sb2)); System.out.println(sb1.equals(ss1)); System.out.println(“Poddar”.substring(3)); Ans: a) false false false dar b) false true false Poddar c) …

Object Oriented Programming Questions & Answers | OOP | MCQ

Object Oriented Programming | OOP | MCQ Software consists of programs, or sets of instructions, that tell the computer to perform certain processing functions. System software is the collection of software that controls the basic functions of the computer. That is, it coordinates the interaction …

Advanced Programming Technique Questions & Answers | APT | MCQ

Advanced Programming Technique | APT | MCQ When the package body only changed then all other objects in body are invalidated no objects invalidated only the sand alone procedure that calling the object get invalidated head is invalidated Ans: (a) class A { final int …