• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • Java

Java interview questions and answers for freshers

Java Select Another Category Select Another Topic

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 457
  • C++ 448
  • DATA STRUCTURE 64
  • DBMS 77
  • ELECTRONICS 39
  • Java 231
  • OOPs Concepts 117
  • Operating Syst 102
  • RDBMS 109
  • UNIX 70

Java Question Topics

    Category (1)

    General Ability (3)

  • General Knowledge (3)
  • HR Interview (3)

  • Interview (2)
  • Logical Reasoning (5)

  • Blood Relations (1)
  • Coding Decoding (2)
  • Cryptography (1)
  • Seating Arrangement (1)
  • Numerical Ability (3)

  • Algebra (1)
  • Number System (1)
  • Profit and Loss (1)
  • Programming (95)

  • Arrays (5)
  • Basics (1)
  • Database (4)
  • Definition (25)
  • Functions (1)
  • Program (19)
  • Puzzles (1)
  • Technical (37)
  • Verbal Ability (1)

  • Miscellaneous (1)
Keep an EYE (0)
Solved Question (3) UnSolved Question (228)
Pages: 24123456789NextLast
Advertisements

(#M40166398) JAVA QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

21. you have three dice each side is numbered as 1,2,3,4,5,6 .you have to take a
number from user check that number as sum of any side number of these
three dice.like we take number as 5 then the possibility are (1,1,3) (1,2,2)
(1,3,1) (2,1,2) (2,2,1) (3,1,1) and is 6 possibility. So write to a program for that.

Asked In Java Varun Kumar yr (1 year ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (5)   (4) Submit Your Solution Arrays

(#M40166286) JAVA QUESTION NEAREST PERFECT SQUARE Keep an EYE Keep an eye puzzle Keep an eye puzzle

Find the nearest perfect square of the given number.
Sample input:600
Sample output:576.

Sample input:47011
Sample output:47089

Asked In Java Arun (1 year ago)
Solved divya Read Solution (1)
Is this Puzzle helpful?   (5)   (1) Submit Your Solution Database
Advertisements

(#M40166061) JAVA QUESTION efficient means of execution Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which checks the object code to determine whether there are more efficient means of execution?
1)Interpreter
2) Linker
3)Compiler
4) Optimizer

Asked In Java Mehul KOTHARI (1 year ago)
Unsolved Read Solution (13)
Is this Puzzle helpful?   (33)   (23) Submit Your Solution Technical

(#M40165443) JAVA QUESTION Circles and distance Keep an EYE Keep an eye puzzle Keep an eye puzzle

Circles and Distances
Problem Description
Task is to calculate the straight line distance between the two objects moving in a circular path. They may move at different velocities. The distance has to be calculated after N seconds.

The figure and commentary below it, explains the problem in detail.

com.tcs.cv.automata.ei.middleware.DocxToHtmlConverter@491cde5b:image1.png

We have two point objects B and C at rest on a straight line at a distance r1 and r2 units from a point A. At time t=0 seconds, the objects start moving in a circular path with A at the center with velocity v1 and v2 degrees per second.

Given inputs v1, v2, r1 and r2, calculate the distance between the B and C after N seconds.

Distance should be printed up to an accuracy of 2 places after the decimal point. Use Rounding Half-up semantics.

Input Format
First line contains velocity of object B in degrees per second (v1)

Second line contains distance of object B from A (r1)

Third line contains velocity of object C in degrees per second (v2)

Fourth line contains distance of object C from A (r2)

Fifth line contains time in seconds after which the distance between B and C, is to be measured (N)

Output
The distance between B and C, N seconds after they are set in motion

Constraints

v1, v2, r1, r2 > 0 and all are integer values.

r2 > r1

0 < n <= 100

The objects move in anticlockwise direction

v1, v2 <=360

r2 <= 100


Explanation
Example 1

Input

90

5

270

10

1

Output

15.00

Explanation

After 1 second, the object at B would cover 90 degrees and the object at C would cover 270 degrees. Both the objects would be vertically opposite to each other and would lie in a straight line.

So the distance between them would be equal to the sum of their distance from the origin A=5+10= 15

Asked In Java joshika (2 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (2)   (0) Submit Your Solution

(#M40165431) JAVA QUESTION string Keep an EYE Keep an eye puzzle Keep an eye puzzle

function of array

Asked In Java karthi (2 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (1) Submit Your Solution

(#M40159591) JAVA QUESTION string Keep an EYE Keep an eye puzzle Keep an eye puzzle

how to replace , in a given string without using predefined methods

Asked In Java Ramya Krishna T (3 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (22)   (8) Submit Your Solution

(#M40158275) JAVA QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

write a java programof string ; first letter should be upper case and rest in lowecase

Asked In Java div (4 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (9)   (2) Submit Your Solution Program

(#M40157238) JAVA QUESTION Dinfference Keep an EYE Keep an eye puzzle Keep an eye puzzle

Distinguish class and object?

Asked In Java Surendra Naraga (4 years ago)
Unsolved Read Solution (9)
Is this Puzzle helpful?   (9)   (4) Submit Your Solution Basics

(#M40157044) JAVA QUESTION technical Keep an EYE Keep an eye puzzle Keep an eye puzzle

A Chess board position is accurately captured by Forsyth-Edwards notation and is abbreviated as FEN. A FEN "record" defines a particular game position, all in one text line and using only the ASCII character set. A FEN record contains six fields. A complete description of the FEN format to represent Chess positions can be found at here

For the purpose of this problem only consider first of the six fields of FEN. Before we describe the problem, let us look at how FEN maps to a board position. The following 5 images show board positions and its corresponding FEN representation.


Figure 1.

Asked In Java satheesh (4 years ago)
Unsolved
Is this Puzzle helpful?   (33)   (12) Submit Your Solution Puzzles

(#M40156335) JAVA QUESTION Any Keep an EYE Keep an eye puzzle Keep an eye puzzle

whether java is purely object oriented ?

Asked In Java Balaji S (4 years ago)
Unsolved Read Solution (25)
Is this Puzzle helpful?   (64)   (26) Submit Your Solution Algebra
Keep an EYE (0)
Solved Question (3) UnSolved Question (228)
Pages: 24123456789NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

AYAN PAUL
AYAN PAUL
India
West Bengal
Time: 00:00:39
Points
20

Maths Quotes

Mathematical proofs, like diamonds, are hard and clear, and will be touched with nothing but strict reasoning.

John Locke

Black holes result from God dividing the universe by zero.

Unknown

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 Months ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 1 year ago
  • 2298K+Registerd user
  • 1609K+Engineers
  • 689K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com